Jquery Mobile:Mobile.pageLoad()出现错误
Jquery Mobile: getting error with mobile.pageLoading()
使用jquery.mobile-1.0rc1;在简单对话框中工作时出错-
Chrome中的错误消息-
Uncaught TypeError: Object #<Object> has no method 'pageLoading'
&在FF-
$.mobile.pageLoading() is not a function
这是代码片段-
$(document).delegate('#importCCRLink', 'click', function() {
$(this).simpledialog({
'mode' : 'bool',
'prompt' : 'Are you sure to import?',
'useModal': true,
'buttons' : {
'OK': {
click: function () {
showTempLoading();
},
theme: "p"
},
'Cancel': {
click: function () {
//alert('Cancel');
}
}
}
})
})
function showTempLoading()
{
$.mobile.pageLoading();
}
-任何想法!
删除$.mobile.pageLoading()
调用,并将其替换为$.mobile.showPageLoadingMsg()
和$.mobile.hidePageLoadingMsg()
。
相关文章:
- Node.js v6.2.0类扩展不是函数错误
- Jquery菜单操作不稳定,定位不正确,存在一般错误
- JQuery和JQuery mobile出现错误
- jquery.mobile-1.4.5.js:26未捕获类型错误:无法设置属性'移动'react应用程序
- 修复了在 PhoneGap 中使用 jQuery Mobile 的 jQuery 验证中导致错误错误的延迟回调
- JQuery Mobile - 关闭对话框后加载错误的页面,并且Javascript并不总是有效
- jQuery Mobile 在尝试触发 pagecreate 时返回错误
- jQuery Mobile的Codeigniter有时会返回错误的base_url()
- jQuery Mobile加载错误
- jQuery Mobile Windows应用商店应用程序:JavaScript运行时错误:无法获取属性'ind
- 仅在Firefox Mobile浏览器上获取错误的视口尺寸
- jquery mobile 1.3.1填充顶部在初始页面加载时计算错误
- jquery(mobile)ajax-总是调用错误回调函数?哪里出了问题
- 在jquery mobile中创建动态列表视图时,.listview()不是函数错误
- 从JQuery Mobile 1.2.0到1.3.1和JQuery 1.8.3到1.9.1更新,得到一个错误&;Refe
- Jquery Mobile:Mobile.pageLoad()出现错误
- JQuery Mobile按钮在IE9中呈现错误
- 将jquery-1.9.1.min.js和query.mobile-1.3.0.min.js合并到一个文件中会出现错误
- jquery.mobile 1.4.5未捕获类型错误:无法读取属性'concat'的未定义
- jQuery Mobile:函数返回错误的 DIV ID