使用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()
.
关于javascript - Jquery Mobile : getting error with mobile. 页面加载(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8113827/