www.lmyx.net > unCAughtErrorEvEnt

unCAughtErrorEvEnt

/** * Created by Administrator on 2014/9/30. */var Shooter = cc.Sprite.extend({ speed: 100, HP: 5, layer: null, ctor: function(layer, x, y) { this._super("#ship03.png"); this.tag = this.zOrder; this.x = x; this.y = y; this.scal...

private function loaderHandler(event:*):void { switch(event.type) { case Event.COMPLETE: trace(_loader.data.result); break; case Event.OPEN: trace("open: " + event); break; case ProgressEvent.PROGRESS: trace("progress: " + even...

你好,你把代码放到window.onload=function(){...}里面试试看,如果页面还没加载到go按钮而且你代码是放在go按钮的前面,你就调用了getElementById,返回的对象是undefined

光看报错怎么知道发生了什么- -这是js里面什么参数或者方法找不到,或者没有值么?

网站地图

All rights reserved Powered by www.lmyx.net

copyright ©right 2010-2021。
www.lmyx.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com