0
的getJSON麻烦一些符号链接的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”,这个回调起作用。它如何解决?
**错误说**是什么?它从何而来? – SLaks 2013-04-30 19:36:41
简短回答 - 解释器在遇到''时停止,无论它是否在字符串中。可能的重复[为什么在使用document.write()写入
使用的
$.getJSON
的结构形式,使得参数是URL编码正确:来源
2013-04-30 19:42:31 Barmar
您的服务器发送一个响应HTTP 403 Forbidden。
您需要修复服务器端代码,以便它不这样做。
来源
2013-05-01 13:53:51 SLaks