rog*_*ver 0 jquery parsing json
$.ajax({
url: 'contact',
type: 'post',
asynch: 'false',
dataType: 'json' ,
data: "recaptcha_challenge_field=" + $("#recaptcha_challenge_field").val() +
"&recaptcha_response_field=" + $("#recaptcha_response_field").val() ,
success: function(data) {
alert(data);
return;
}
});
Run Code Online (Sandbox Code Playgroud)
json reponse看起来像这样
{"the_result":"false"}
Run Code Online (Sandbox Code Playgroud)
但警报(数据)给[对象,对象]
| 归档时间: |
|
| 查看次数: |
344 次 |
| 最近记录: |