您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

請問要如何把mui.ajax反回的數據加入網頁上

2024/3/30 11:49:29发布12次查看
在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
回复内容: 在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
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product