`
thierry.xing
  • 浏览: 656712 次
  • 性别: Icon_minigender_1
  • 来自: 北京
博客专栏
580fa9c1-4a0c-3f40-a55a-c9256ce73302
Sencha Touch中...
浏览量:0
社区版块
存档分类
最新评论

Worklight开发中遇到的奇怪错误

 
阅读更多

Worklight开发中遇到的奇怪错误:

应用启动时:

TypeError: 'null' is not an object (evaluating 'WLJSX.$('content').tagName')

 

调用适配器时:

TypeError: 'null' is not a valid argument for 'in' (evaluating 'field in profile')

 

调试了半天都没有找到原因,最后通过研究源码,发现错误原因:

主html中,的body必须加上id="content"属性,否则会出现以上问题。

 

<body id="content">
    <div id="appLoadingIndicator">
        <div></div>
        <div></div>
        <div></div>
    </div>
	<script src="js/sencha-touch-all.js"></script>
	<script src="js/messages.js"></script>
	<script src="js/MobileOA.js"></script>
	<script src="app.js"></script>
	<script src="js/initOptions.js"></script>
</body>

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics