Closed richardchen85 closed 8 years ago
在ajax求请html页面中也会加一次require.js或者mod.js,而且url是带时间戳的,所以肯定会多一次请求,但实际上不需要
亲,这个需求可以通过注释占位符来控制的。
即使不加<!--FIS_FRAMEWORK_PLACEHOLDER-->也会加载模块化框架,因为它被写入了Resource的js属性里,在调用renderJS()时就出来了
<!--FIS_FRAMEWORK_PLACEHOLDER-->
Resource
js
renderJS()
请更新, 问题解决了。
OK,果然比我的方式好
在ajax求请html页面中也会加一次require.js或者mod.js,而且url是带时间戳的,所以肯定会多一次请求,但实际上不需要