收藏
回答

cocos2.4测试游戏时,网页版正常运行,利用微信开发者工具测试时,点击开始按钮卡住,如何解决?

cocos2d-js.js? [sm]:12238 Cannot set property '_val' of undefined TypeError: Cannot set property '_val' of undefined

    at Array.BuiltinValueTypeSetters (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:793637)

    at parseValueTypeCreated (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:797689)

    at deserializeCCObject (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:796740)

    at parseClass (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:797437)

    at parseArray (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:798374)

    at deserializeCCObject (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:796740)

    at parseInstances (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:799305)

    at Object.deserialize (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:802076)

    at deserialize (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:311964)

    at parseImport (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:349393)(env: Windows,mg,1.06.2407120; lib: 3.6.2)

onComplete @ cocos2d-js.js? [sm]:12238

(anonymous) @ cocos2d-js.js? [sm]:12779

(anonymous) @ cocos2d-js.js? [sm]:12299

(anonymous) @ cocos2d-js.js? [sm]:12670

parseImport @ cocos2d-js.js? [sm]:12655

parse @ cocos2d-js.js? [sm]:12667

parse @ cocos2d-js.js? [sm]:12298

_flow @ cocos2d-js.js? [sm]:12776

(anonymous) @ cocos2d-js.js? [sm]:12785

(anonymous) @ cocos2d-js.js? [sm]:12266

load @ cocos2d-js.js? [sm]:12434

fetch @ cocos2d-js.js? [sm]:12264

_flow @ cocos2d-js.js? [sm]:12776

async @ cocos2d-js.js? [sm]:12771

(anonymous) @ cocos2d-js.js? [sm]:12247

forEach @ cocos2d-js.js? [sm]:13476

load @ cocos2d-js.js? [sm]:12229

_flow @ cocos2d-js.js? [sm]:12776

(anonymous) @ cocos2d-js.js? [sm]:12785

preprocess @ cocos2d-js.js? [sm]:12844

_flow @ cocos2d-js.js? [sm]:12776

async @ cocos2d-js.js? [sm]:12771

loadAny @ cocos2d-js.js? [sm]:10329

loadScene @ cocos2d-js.js? [sm]:10577

(anonymous) @ index.js? [sm]:498

(anonymous) @ cocos2d-js.js? [sm]:13554

(anonymous) @ cocos2d-js.js? [sm]:30248

setTimeout (async)

callInNextTick @ cocos2d-js.js? [sm]:30247

(anonymous) @ cocos2d-js.js? [sm]:13550

loadBundle @ cocos2d-js.js? [sm]:10386

ZzSceneMng.runScene @ index.js? [sm]:493

Home.chosePlayEasy @ index.js? [sm]:193

emit @ cocos2d-js.js? [sm]:18207

emitEvents @ cocos2d-js.js? [sm]:18190

_onTouchEnded @ cocos2d-js.js? [sm]:17782

proto.emit @ cocos2d-js.js? [sm]:28669

_doDispatchEvent @ cocos2d-js.js? [sm]:8075

dispatchEvent @ cocos2d-js.js? [sm]:8944

_touchEndHandler @ cocos2d-js.js? [sm]:7964

_onTouchEventCallback @ cocos2d-js.js? [sm]:21934

_dispatchEventToListeners @ cocos2d-js.js? [sm]:22020

_dispatchTouchEvent @ cocos2d-js.js? [sm]:21969

dispatchEvent @ cocos2d-js.js? [sm]:22221

handleTouchesEnd @ cocos2d-js.js? [sm]:26531

(anonymous) @ adapter.js? [sm]:1027

callbackTouch @ gamePage.html:341

(anonymous) @ gamePage.html:293

cocos2d-js.js? [sm]:10581 Cannot set property '_val' of undefined TypeError: Cannot set property '_val' of undefined

    at Array.BuiltinValueTypeSetters (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:793637)

    at parseValueTypeCreated (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:797689)

    at deserializeCCObject (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:796740)

    at parseClass (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:797437)

    at parseArray (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:798374)

    at deserializeCCObject (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:796740)

    at parseInstances (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:799305)

    at Object.deserialize (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:802076)

    at deserialize (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:311964)

    at parseImport (http://127.0.0.1:44505/game/cocos/cocos2d-js.js:2:349393)(env: Windows,mg,1.06.2407120; lib: 3.6.2)

(anonymous) @ cocos2d-js.js? [sm]:10581

(anonymous) @ cocos2d-js.js? [sm]:13554

(anonymous) @ cocos2d-js.js? [sm]:30248

setTimeout (async)

callInNextTick @ cocos2d-js.js? [sm]:30247

(anonymous) @ cocos2d-js.js? [sm]:13550

(anonymous) @ cocos2d-js.js? [sm]:12779

onComplete @ cocos2d-js.js? [sm]:12240

(anonymous) @ cocos2d-js.js? [sm]:12779

(anonymous) @ cocos2d-js.js? [sm]:12299

(anonymous) @ cocos2d-js.js? [sm]:12670

parseImport @ cocos2d-js.js? [sm]:12655

parse @ cocos2d-js.js? [sm]:12667

parse @ cocos2d-js.js? [sm]:12298

_flow @ cocos2d-js.js? [sm]:12776

(anonymous) @ cocos2d-js.js? [sm]:12785

(anonymous) @ cocos2d-js.js? [sm]:12266

load @ cocos2d-js.js? [sm]:12434

fetch @ cocos2d-js.js? [sm]:12264

_flow @ cocos2d-js.js? [sm]:12776

async @ cocos2d-js.js? [sm]:12771

(anonymous) @ cocos2d-js.js? [sm]:12247

forEach @ cocos2d-js.js? [sm]:13476

load @ cocos2d-js.js? [sm]:12229

_flow @ cocos2d-js.js? [sm]:12776

(anonymous) @ cocos2d-js.js? [sm]:12785

preprocess @ cocos2d-js.js? [sm]:12844

_flow @ cocos2d-js.js? [sm]:12776

async @ cocos2d-js.js? [sm]:12771

loadAny @ cocos2d-js.js? [sm]:10329

loadScene @ cocos2d-js.js? [sm]:10577

(anonymous) @ index.js? [sm]:498

(anonymous) @ cocos2d-js.js? [sm]:13554

(anonymous) @ cocos2d-js.js? [sm]:30248

setTimeout (async)

callInNextTick @ cocos2d-js.js? [sm]:30247

(anonymous) @ cocos2d-js.js? [sm]:13550

loadBundle @ cocos2d-js.js? [sm]:10386

ZzSceneMng.runScene @ index.js? [sm]:493

Home.chosePlayEasy @ index.js? [sm]:193

emit @ cocos2d-js.js? [sm]:18207

emitEvents @ cocos2d-js.js? [sm]:18190

_onTouchEnded @ cocos2d-js.js? [sm]:17782

proto.emit @ cocos2d-js.js? [sm]:28669

_doDispatchEvent @ cocos2d-js.js? [sm]:8075

dispatchEvent @ cocos2d-js.js? [sm]:8944

_touchEndHandler @ cocos2d-js.js? [sm]:7964

_onTouchEventCallback @ cocos2d-js.js? [sm]:21934

_dispatchEventToListeners @ cocos2d-js.js? [sm]:22020

_dispatchTouchEvent @ cocos2d-js.js? [sm]:21969

dispatchEvent @ cocos2d-js.js? [sm]:22221

handleTouchesEnd @ cocos2d-js.js? [sm]:26531

(anonymous) @ adapter.js? [sm]:1027

callbackTouch @ gamePage.html:341

(anonymous) @ gamePage.html:293

index.js? [sm]:500 TypeError: Cannot set property '_val' of undefined

    at Array.BuiltinValueTypeSetters (cocos2d-js.js? [sm]:28740)

    at parseValueTypeCreated (cocos2d-js.js? [sm]:28931)

    at deserializeCCObject (cocos2d-js.js? [sm]:28898)

    at parseClass (cocos2d-js.js? [sm]:28924)

    at parseArray (cocos2d-js.js? [sm]:28961)

    at deserializeCCObject (cocos2d-js.js? [sm]:28898)

    at parseInstances (cocos2d-js.js? [sm]:28990)

    at Object.deserialize (cocos2d-js.js? [sm]:29092)

    at deserialize (cocos2d-js.js? [sm]:11385)

    at parseImport (cocos2d-js.js? [sm]:12651)(env: Windows,mg,1.06.2407120; lib: 3.6.2)

回答关注问题邀请回答
收藏
登录 后发表内容