我正在获取响应表单服务 url,但正在寻找jQuery
将数据放在页面上。有人可以帮我处理 jQuery 代码循环吗?
谢谢,
<script type="text/javascript">
$.jsonp({
url: "http://test.com",
callback: "_jqjsp",
success: function(json) {
// Will be given the response of service
alert("success");
console.log("success");
},
error: function() {
// Will be notified of an error requesting service
alert("error");
console.log("error");
}
});
</script>
这是我的 JSONP 数据
_jqjsp({
"response":{
"numFound":2,
"docs":[
{
"id":"1",
"Name":"22689",
"Company":"ABC"
},
{
"id":"2",
"Name":"00012",
"Company":"ABC
},
]
}
});