Skip to content

seajs2.0+监听request方法后在ie下的一个bug #1064

Closed
chauvetxiao opened this Issue Dec 26, 2013 · 1 comment

3 participants

@chauvetxiao

使用场景
seajs.on("request",function(cfg){
cfg.requestUri = cfg.requestUri+ "?v=" + (+ new Date);
})
在这里重置requestUri后发现IE无法正常运行,跟踪发现是由于ie9,准确的说是ie10下当脚本加载完毕后是根据src去module缓存里面取模块,由于有时间戳导致取模块失败而重新初始化了另外一个模块,从而依赖判断错误递归一直处于等待状态无法进行最终的回调。

@afc163
seajs member
afc163 commented Jan 24, 2014

如果要实现时间戳功能,可以试试 #264 (comment)

使用 seajs 的事件机制要求对 seajs 的运行机制非常了解才行,这个不算是 bug 。

@army8735 army8735 closed this Mar 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.