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.
我的申请是可销售的。目前我们在我的应用程序中识别出 200 个屏幕。在单页应用程序中,我们需要在一个请求中转储所有模板和 js 文件,然后初始加载需要更多时间来呈现页面。有没有标准的方法来处理这个?
简单的!
不要在一个请求中转储所有模板和 js 文件。需要时使用 ajax 将它们作为 & 获取。
我个人更喜欢使用requirejs
requirejs