请求部分代码
$("#jqrwd").click(function(){/*机器人问答*/
$.ajax({
url: "http://op.juhe.cn/robot/index?info=" + $('#jqrwdrlnr').val() + "&dtype=&loc=&lon=&lat=&userid=&key=5734f3d9bfc41ccd5ebf96c7829a1fef",
type: 'GET',
dataType: 'jsonp',
success: function (data) {
var json = eval(data);
alert(json);
var text = json.result.text;
var text2 = json.result.code;
alert(text);
$("#wllttqtext").html(text+text2) ;
},
error:function(){
alert("请求出错!");
}
});
});