任何人都可以帮助我如何从下面的 url 显示数据,我试过但我只得到一行数据。我张贴我的代码检查一次
http://www.apexweb.co.in/Apex_Quote/Phone_Gap/Download_Data.asp?un=9393910169
function check() {
var str1 = "http://www.apexweb.co.in/Apex_Quote/Phone_Gap/Download_Data.asp?un=9393910169";
loadData(str1);
}
// call service
function loadData(URL_Str) {
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = URL_Str;
data = head.appendChild(script);
your_callback(data);
}
// get response from service
function your_callback(data) {
var st1 = data.ContactName;
var st2 = data.ContactNumber;
var st3 = data.MainCategory;
var st4 = data.SubCategory;
alert(st1);
}