日期:2014-05-16  浏览次数:20319 次

js eval压缩后如何使用
function test(){
alert(1234);
}
压缩后变成

eval(function(p,a,c,k,e,r){e=String;if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'^$'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('function test(){alert(1234)}',[],1,''.split('|'),0,{}))

存在了test.js中
如何调用这个test()函数????

------解决方案--------------------
test(); 不就调用了吗。