_refresh 函数 调用layout._updateLayout() 实际已经变成 layout.updateLayout()
你描述的我有点看不懂,是不是 layout._updateLayout() 改成 layout.updateLayout() 了?
额 就是layout._updateLayout 这个函数 被你们改成 layout. updateLayout了 但是 ccPageViewIndiactor里面 还有调用layout._updateLayout的地方
导致使用pageview的地方会报错
能看一下报错信息吗?
对 就是你说的 不知道怎么的 一楼里的下划线打不出来 还得加上转义字符
10-26 16:21:19.490 12337 12454 E jswrapper: ERROR: Uncaught TypeError: this._layout._updateLayout is not a function, src/jsb_polyfill.js:0:0
10-26 16:21:19.490 12337 12454 E jswrapper: STACK:
10-26 16:21:19.490 12337 12454 E jswrapper: [0]_refresh@src/jsb_polyfill.js:10778
10-26 16:21:19.490 12337 12454 E jswrapper: [1]_updatePageView@src/jsb_polyfill.js:10553
10-26 16:21:19.490 12337 12454 E jswrapper: [2]addPage@src/jsb_polyfill.js:10474
10-26 16:21:19.490 12337 12454 E jswrapper: [3]updateAchievement@src/project.dev.js:412
10-26 16:21:19.490 12337 12454 E jswrapper: [4]onEnable@src/project.dev.js:392
10-26 16:21:19.490 12337 12454 E jswrapper: [5]invokeOnEnable@src/jsb_polyfill.js:7883
10-26 16:21:19.490 12337 12454 E jswrapper: [6]invoke@src/jsb_polyfill.js:7819
10-26 16:21:19.490 12337 12454 E jswrapper: [7]activateNode@src/jsb_polyfill.js:18260
10-26 16:21:19.490 12337 12454 E jswrapper: [8]_activate@src/jsb_polyfill.js:6492
10-26 16:21:19.490 12337 12454 E jswrapper: [9]runSceneImmediate@src/jsb_polyfill.js:32299
10-26 16:21:19.490 12337 12454 E jswrapper: [10]anonymous@src/jsb_polyfill.js:32391
10-26 16:21:19.490 12337 12454 E jswrapper: [11]anonymous@src/jsb_polyfill.js:20542
10-26 16:21:19.490 12337 12454 E jswrapper: [12]anonymous@src/jsb_polyfill.js:16500
10-26 16:21:19.490 12337 12454 E jswrapper: [13]anonymous@src/jsb_polyfill.js:23730
10-26 16:21:19.490 12337 12454 E jswrapper: [14]onceWrapper@src/jsb_polyfill.js:14227
10-26 16:21:19.490 12337 12454 E jswrapper: [15]82.EventListeners.invoke@src/jsb_polyfill.js:14073
10-26 16:21:19.490 12337 12454 E jswrapper: [16]83.proto.emit@src/jsb_polyfill.js:14250
10-26 16:21:19.490 12337 12454 E jswrapper: [17]callback@src/jsb_polyfill.js:32427
你去 Creator 安装目录下的 cocos2d-x 中的 simulator 看看 src/jsbpolyfill.js 这些行号 10778 ,我这边代码是正确的
纳尼 ·· 好吧 你们那边正常就好 我这边我改过engine了 现在是正常的了··· 之前这行是调用的旧的
哦 对了 我的engine 是在v1.7分支