手机使用jqueryMobile,提示jquery mobile: Object [object Object] has no method 'jqmData'
来源:互联网 发布:福州淘宝代运营 编辑:程序博客网 时间:2024/06/01 23:56
最近,开发用到了jqueryMobile,个人感觉用起来很不错,但是一些问题,总是不容易搜出来,欢迎大家前来提问,探讨。
用jqueryMobile做了一个用户列表,手机加载时,有时加载不出来,用的版本是1.4.4
<div data-role='collapsible-set'> <div data-role="collapsible" data-iconpos='right' data-collapsed-icon='carat-r' data-expanded-icon='carat-d'> <h3>部门1</h3> <label for="ayi">阿一</label> <input type="checkbox" name="userlists" id="ayi" value="ayi"> <label for="aer">阿二</label> <input type="checkbox" name="userlists" id="aer" value="aer"> <label for="asan">阿三</label> <input type="checkbox" name="userlists" id="asan" value="asan"> </div> </div>
因为是在手机上,错误不好找出来,然后就通过一个全局错误提示了出来,转自http://www.cnblogs.com/kenkofox/p/4572479.html
onerror=handleErr;var txt="";function handleErr(msg,url,l){txt="There was an error on this page.\n\n"txt+="Error: " + msg + "\n"txt+="URL: " + url + "\n"txt+="Line: " + l + "\n\n"txt+="Click OK to continue.\n\n"alert(txt)return true;}
手机上错误显示:
网上查了查,发现不容易找到解决办法,最后没办法了,用了一个投机取巧的办法,在代码里重新加载网页,问题解决!
onerror=handleErr;var txt="";function handleErr(msg,url,l){//重新加载//根据自己的代码,请自行填写return true;}
虽然,解决办法不是很完美,但是也是找到了一个另辟蹊径的办法。
最后,如果各位有别的解决办法,欢迎评论,谢谢!
0 0
- 手机使用jqueryMobile,提示jquery mobile: Object [object Object] has no method 'jqmData'
- jquery: Uncaught TypeError: Object [object Object] has no method 'live'
- Object [object Object] has no method 'tree'
- TypeError: Object #<Object> has no method 'createClient'
- 当使用JQuery的"$",抛异常Uncaught TypeError: Object #<Object> has no method 'ajax'
- jquery dialog异常 Uncaught TypeError: Object [object Object] has no method 'dialog'
- jquery file upload报错 TypeError: Object [object Object] has no method 'progressbar'
- Uncaught TypeError: Object [object Object] has no method 'live'
- Uncaught TypeError: Object [object Object] has no method 'xxx'
- canvas Object [object Object] has no method 'getContext'
- Uncaught TypeError: Object [object Object] has no method 'highcharts'
- jsp Object [object Object] has no method 'datebox'
- webview 错误 Object has no method clickOnAndroid
- Uncaught TypeError: Object #<Object> has no method 'addEvents'
- Uncaught TypeError: Object #<Object> has no method 'addEvents'
- Object [object global] has no method 'xxxx方法'
- 出现TypeError: Object #<Object> has no method 'createClient' 错误
- [Android] Web Console: Uncaught TypeError: Object [object Object] has no method 'xxx'
- JavaScript滑动门特效
- 献给和我合作的过得前端童靴们:jquery源码分析--序4
- Jquery的traditional属性和map()方法
- hdu 2579 Dating with girls(2)【BFS+全文翻译】
- Physical and Logical Block Corruptions. All you wanted to know about it. (文档 ID 840978.1)
- 手机使用jqueryMobile,提示jquery mobile: Object [object Object] has no method 'jqmData'
- Android语音聊天
- android中的事件传递机制(1)
- hihoCoder 数论一Miller-Rabin质数检测
- Android源码-Volley
- Java操作Cookie
- 常用的linux文件权限
- 大数据离线处理和常用工具
- rman单机备份异机还原