uncaught typeerror: property 'data' of object function (b,c){if(c=c||a,!b)return j();if(object==typeof b)return i.isarraylike(b)?j(i.slice.call(b),null):j([b],null);if(function==typeof b)return i.ready(b);if(string==typeof b)try{if(b=b.trim()......on at index2.html:38
function showhint(str) {
if (str.length == 0) {
document.getelementbyid(txthint).innerhtml = ;
return;
} else {
var url = 'http://hktc.erufa.com/show.php'
mui.ajax(url,{
data:{
q:str
},
datatype:'html',
type:'get',//http请求类型
timeout:30000,//超时时间设置为10秒;
success:function(data){
//服务器返回响应,根据响应结果,分析是否登录成功;
document.getelementbyid(txthint).innerhtml = data;
},
error:function(xhr,type,errorthrown){
//异常处理;
console.log(type);
}
});
start typing a name in the input field below:
first name:
suggestions:
php code
回复内容: 在app運行, 發生以下錯誤, 請問要如何把mui.ajax反回的數據加入網頁上
uncaught typeerror: property 'data' of object function (b,c){if(c=c||a,!b)return j();if(object==typeof b)return i.isarraylike(b)?j(i.slice.call(b),null):j([b],null);if(function==typeof b)return i.ready(b);if(string==typeof b)try{if(b=b.trim()......on at index2.html:38
function showhint(str) {
if (str.length == 0) {
document.getelementbyid(txthint).innerhtml = ;
return;
} else {
var url = 'http://hktc.erufa.com/show.php'
mui.ajax(url,{
data:{
q:str
},
datatype:'html',
type:'get',//http请求类型
timeout:30000,//超时时间设置为10秒;
success:function(data){
//服务器返回响应,根据响应结果,分析是否登录成功;
document.getelementbyid(txthint).innerhtml = data;
},
error:function(xhr,type,errorthrown){
//异常处理;
console.log(type);
}
});
start typing a name in the input field below:
first name:
suggestions:
php code
