当前位置: 代码迷 >> JavaScript >> js eval压缩后怎么使用
  详细解决方案

js eval压缩后怎么使用

热度:403   发布时间:2013-11-21 23:38:25.0
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(); 不就调用了吗。
  相关解决方案