cocos2d-js-----Uncaught TypeError: Cannot read property 'style' of null
来源:互联网 发布:mac版flashcs6汉化包 编辑:程序博客网 时间:2024/05/16 01:41
原因很简单,就是因为你代码里面用到这个js文件,但是project.json里面没有添加到jsList里面。
比如我注释了Alert.json
<span style="font-size:24px;"> "jsList" : [</span> "src/resource.js", "src/app.js", "src/BattleScene.js", "src/CSVReader.js", "src/Common.js", "src/Level.js", //"src/Alert.js" ]}
就报错了:
CCBoot.js:646 Uncaught TypeError: Cannot read property 'style' of null
0 0
- cocos2d-js-----Uncaught TypeError: Cannot read property 'style' of null
- 关于js Uncaught TypeError: Cannot read property 'style' of null 问题
- js提示Uncaught TypeError: Cannot read property 'options' of null
- dataTables Uncaught TypeError: Cannot read property 'style' of undefined
- Uncaught TypeError: Cannot read property of 'name' null
- Uncaught TypeError: Cannot read property 'length' of null
- Uncaught TypeError: Cannot read property 'length' of null
- Uncaught TypeError: Cannot read property 'value' of null
- 【ExtJS】Uncaught TypeError: Cannot read property 'length' of null
- openlayers Uncaught TypeError: Cannot read property 'wrapDateLine' of null
- Uncaught TypeError: Cannot read property 'getElementsByTagName' of null
- Uncaught TypeError: Cannot read property 'value' of null
- Uncaught TypeError: Cannot read property 'width' of null
- JavaScript:Uncaught TypeError Cannot read property 'id' of null。
- Uncaught TypeError: Cannot read property 'childNodes' of null
- Uncaught TypeError: Cannot read property 'offsetTop' of null
- Uncaught TypeError: Cannot read property 'value' of null
- Uncaught TypeError: Cannot read property 'querySelector' of null
- JavaScript高级程序设计之DOM之节点层次之Document类型第10.1.2讲
- UVa 562 Dividing coins
- fs4412开发板学习笔记(一)
- 基于曲线方向(梯度)变化的角点检测方法
- 导入安卓sdk源码
- cocos2d-js-----Uncaught TypeError: Cannot read property 'style' of null
- [leetcode 252] Meeting Rooms
- LeetCode 095 Unique Binary Search Trees II
- C/C++ 之 char*,const char*和string 三者转换
- JDBC核心类
- ShardedJedisPool详解
- spring MVC项目中,欢迎页首页根路径到底是怎么设置的
- 设计之路:如何进行软件需求分析?
- Install plantuml on Mac OSX