大约有 164 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0036 秒)
...获取不到,请教一下什么问题 //注册按钮响应函数 Login.prototype.onButtonLogin = function (){ console.log ('按了登录按钮') var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,...
来源: Laya_社区 发布时间: 20180824
...组中去掉几个, 也会影响其他box接收person的功能 LayaAir3D.prototype = { creatBox:function(parent,poolBox,boxSize){ // var i = Math.random()*10; // var j = Math.random()*10; for (var i = 0; i < 10; i++) { for (var j = 0; j < 10; j++) { // var box = parent.addChild(new Laya.MeshSp...
来源: Laya_社区 发布时间: 20180117
...发中不可避免啊,请问怎么解决呢? TypeError: Object prototype may only be an Object or null: undefined preload.js:55 at setPrototypeOf (<anonymous>) at __extends (file:///E:/SVN/ZQ2/client2.0/bin/js/bundle.js:6:9) at file:///E:/SVN/ZQ2/client2.0/bin/js/bundle.js:4120...
来源: Laya_社区 发布时间: 20190222
...lass(LabelAtlas,'laya.customUI.LabelAtlas',_super); var __proto=LabelAtlas.prototype; return LabelAtlas; })(Clip) xml如下: <?xml version="1.0" encoding="utf-8"?> <uiComp> <!-- drag:0-不能拖动,1-水平,2-垂直,3-全部 --> <LabelAtlas className=...
来源: Laya_社区 发布时间: 20170206
...tyle.visibility = "visible"; } //点击取消按钮关闭模态框 ShowDiv.prototype.CloseDiv = function () { this.modlueDiv.style.visibility = "hidden"; this.mask.style.visibility = "hidden"; } //点击确认按钮关闭模态框,提示增加信息 ShowDiv.prototype.CloseDivAndInfoMesg = functi...
来源: Laya_社区 发布时间: 20181214
...IONARY[this.url]; } laya.resource.Resource.prototype.destroy.call(this); } 骨骼释放纹理 Templet.TEMPLET_DICTIONARY[this.url] url用错了导致Templet删不掉 应该用 if (this._relativeUrl){ delete Templet.TEMPLET_DICTIONARY[this._relativeUrl]; 附...
来源: Laya_社区 发布时间: 20190704
...空,输出日志发现是setSkinMesh这个函数报错。 ConchGraphics.prototype.setSkinMesh = function (ib, vb, eleNum, iStart, texture, mat) { var img = texture.source; var _ = conch.bf; if (ib.conch_id === undefined || !ib._upload) { ib.conch_id = CanvasRenderingContext2D.ID++; ib.conchRef = n...
来源: Laya_社区 发布时间: 20190806
....super(this); } Laya.class(loadMap,"loadMap",_super); var _proto = loadMap.prototype; _proto.init = function() { this.num = ""; this.map = new TiledMap(); } _proto.showMap = function(num) { this.num = num; this.map.createMap("map/level/mota_map" + num + ".json",new Rectangle(0,0,448,448),Handler.cre...
来源: Laya_社区 发布时间: 20170605
... } Laya.class(Loading_fly, "Loading_fly", _super) var _proto = Loading_fly.prototype; _proto.onPlay = function () { UIConfig.popupBgAlpha = 0.85; UIConfig.closeDialogOnSide = false; this.diango = new Laya.Dialog(); this.diango.width = Laya.stage.width; this.diango.height = Laya.stage.height; var loa...
来源: Laya_社区 发布时间: 20171107
... CanvasRenderingContext2D is not defined to=to || CanvasRenderingContext2D.prototype; ^^ ReferenceError: CanvasRenderingContext2D is not defined at Function.Context.__init__ (http://stand.alone.version/Main.max.js:16077:12) ...
来源: Laya_社区 发布时间: 20190528