You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for(vari=0,len=map.length;i<len;i++){varrule=map[i]ret=isFunction(rule) ?
(rule(uri)||uri) :
uri.replace(rule[0],rule[1])// Only apply the first matched ruleif(ret!==uri)break}
配置map后的确可以解决时间戳的问题,代码如下:
但是打包部署后,使用{url}?seajs-debug访问页面,调出调试窗口后,无法调用未压缩的xx-debug.js
查了下源码,发现seajs源码中有下面这句话:
导致seajs-debug.js中的map函数不被执行.
而seajs-debug是被异步preload进来的,理论上,seajs-debug中的map始终比我自己的map注册时间晚,所以xx-debug.js的map执行不了.
请问有什么好办法解决此问题么?
The text was updated successfully, but these errors were encountered: