seajs / seajs

A Module Loader for the Web
https://seajs.github.io/seajs/
MIT License
8.3k stars 2.6k forks source link

text插件加载模板无效,status为0 #559

Closed hizhengfu closed 11 years ago

hizhengfu commented 11 years ago

参照require的状态码

放宽判断r.status=200有效为!(r.status > 399 && r.status < 600)就能正常加载文件了。 浏览器环境为火狐

lianqin7 commented 11 years ago

status为0是因为用了本地file而不是http吧,还是搞一个http服务器去调试更好

hizhengfu commented 11 years ago

@lianqin7 requirejs能正常加载,可以放宽限制方便本地调试。我这个是phonegap用的代码,就是要本地file的,不然就不能用了。

lifesinger commented 11 years ago

已 merge,感谢。