Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我理解使用 requirejs 以特定顺序加载特定模块的概念,但是如果子页面需要其他脚本,特别是如果它们很广泛,应该如何使用它?
我不明白您如何能够在子页面上使用 require js,因为您已经在母版页上包含了脚本标记,该母版页因此出现在子页上。
由于页面已经从模板加载了脚本,您只需通过调用require()函数来使用它。
require()