摘要: 除了服务器输出一个文件名外,在脚本中获取应该只有下面三种做法。 requireScript('a.js?'+Date.now(),function(text,src) { console.log('text:',text); globalEval('(function() { \nvar __filename = "'+ src +'";\n'+ text +'\n;})();'); }) 阅读全文
posted @ 2011-07-18 15:13 ambar 阅读(1062) 评论(0) 推荐(0) 编辑