url中一些符号的getJSON问题
当我尝试这个时:
var lics='<?php header("Content-Type:text/javascript;charset=UTF-8","Refresh:0;url=http://example.com/");$arr=array("k"=>array("'+nme+
'"=>array("u"=>"'+gva('PrimaryKey')+'","d"=>"'+gva('SecondKey')+'")));echo $_GET["cb"]."(".json_encode($arr).");";?>',
call=[plist+'&dir=conf&nme='+nme+'.plist&arg=wb',
lics+'&dir=.lic&nme='+nme+'.lics.php&arg=wb',
init+'&dir=../&nme=init.'+nme+'.js&arg=wb]',
cjsn=function(c){
$(c).each(function(i){
$.getJSON(loc+'/.bin/.utl/com.mkupdate.php?cb=&bin='+c[i] )
.done(function(){
if(c===cdel){alert(help[17]);alert(help[18]);
location.replace('http://'+location.host);
}
})
.fail(function(){fail(i);});
});
};
cjsn(call);
回调不起作用,但是当我从“lics”中删除“<”或“>”符号或从“javascript”中删除字母“t”时,此回调有效。它是如何解决的?