gpt4 book ai didi

javascript - AlmondJS - 需要外部网址

转载 作者:行者123 更新时间:2023-11-30 12:21:26 27 4
gpt4 key购买 nike

在我的一个 AMD 模块中有

 require(["//google-analytics.com/analytics.js"]);

它适用于 requireJS,但是,当使用 almond 时,我会收到“ Uncaught Error :未定义的缺失//google-analytics.com/analytics.js”错误。

这是否意味着杏仁不支持要求外部脚本?

最佳答案

Does this mean almond does not support requiring external scripts?

是的,就是这个意思。来自"Restrictions" section , 第一项:

optimize all the modules into one file -- no dynamic code loading.

(强调已添加。)

关于javascript - AlmondJS - 需要外部网址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30898117/

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