两者有什么区别chrome.runtime.getURL https://developer.chrome.com/extensions/runtime#method-getURL and chrome.extension.getURL https://developer.chrome.com/extensions/extension#method-getURL?
该文档暗示chrome.runtime.getURL
适用于应用程序和扩展程序,并且2012年的这个公告 https://groups.google.com/a/chromium.org/forum/#!topic/chromium-extensions/7ZCpcIkJ1RM表示某些 API(尽管not getURL
) 已移至chrome.extension
to chrome.runtime
.
有什么意义chrome.extension.getURL
那么,为什么它不被弃用而有利于chrome.runtime.getURL
?
The chrome.extension.getURL
is now 已弃用,你应该使用chrome.runtime.getURL
.
来自chrome.extension.getURL
's docs https://developer.chrome.com/extensions/extension#method-getURL:
已弃用从 Chrome 58 开始。请使用runtime.getURL。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)