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.
没有 Require.js 可以在浏览器控制台中调用全局对象,例如
app app.movies
当我在 RequireJS 模块中包装代码时,如何在浏览器控制台中访问模块中的数据?我会发现这对调试很有帮助。
你有没有尝试过
require("app").movies
?