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.
我有两个 js 文件,a.js现在b.js我想创建一个common.js包含其他两个文件的文件。我能怎么做?提前致谢。
a.js
b.js
common.js
看看这个:Require.js
它是客户端的模块加载器,就像 Node.js 一样,可以轻松导入 js 文件或模块。