gpt4 book ai didi

javascript - Chrome 插件中的 Durandal

转载 作者:行者123 更新时间:2023-11-28 02:16:53 24 4
gpt4 key购买 nike

我想开发一个 google chrome 插件。对于 MVVM 组合,我想使用 DurandalJS。由于我是 chrome 插件开发的新手,我想知道这是否可能,或者 chrome 的沙箱机制是否会阻止 Durandal 或其子 API 之一,如 sammyJS 或 requireJS。

最佳答案

如果不尝试这种特定情况,它应该像在任何其他网页中一样工作。

来自 Chrome 开发者网站:

If you want to use a library that the browser doesn't provide (for example, jQuery), you can bundle that library's JavaScript files with your extension. Bundled libraries work in extensions just as they do in other web pages.

(强调我的)

来源:http://developer.chrome.com/extensions/api_other.html

如果有的话,你可以在 Chrome 插件中比在常规网站上做更多的事情。如果没有,如果您可以只使用书签,那么插件有什么用?

关于javascript - Chrome 插件中的 Durandal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16264114/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com