js异常 SyntaxError: missing : after property id
js错误 SyntaxError: missing : after property id在用jquery的post方法时$.post(adminCheckTpmisPlans.d
js错误 SyntaxError: missing : after property id
在用jquery的post方法时
$.post('adminCheckTpmisPlans.do',{'test',str},function(f){...})报如下错误
SyntaxError: missing : after property id
原因是传参数时 应该是JSON格式 keyv/alue形式
把{'test',str}改为{'test':str}就行了。