cocos2d-js打印没有输出,添加MenuItemSprite本地模拟器闪退

按照http://www.cocos2d-x.org/docs/tutorial/framework/html5/parkour-game-with-javascript-v3.0/chapter3/zh在
this.addChild(menu)处本地cocos模拟器闪退
然后我把

var menuItemPlay=
new cc.MenuItemSprite(

new cc.Sprite(res.start_n_png), *// normal state image


new cc.Sprite(res.start_s_png), *//select state image


this.onPlay,
this);

换成

var menuItemPlay =
new cc.MenuItemFont(
“game start”,
this.onPlay,
this);就好了

以后是不是不能用MenuItemSprite了?

还有在使用cc.log()的时候没有输出显示?

使用cc.log()的时候没有输出显示问题弄好了,重新用debug模式编译了一下libs

MenuItemSprite的问题也好了,我重新复制粘贴了一遍,但不知道为什么?两次的代码都一样。