大约有 573 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0040 秒)
Laya_社区(347) Laya3.0_api(60) Laya2.0_文档(52) Laya_示例(41) Laya2.0_示例(40) Laya3.0_文档(29) laya_api(2) Laya2.0_api(2)
....create({ head: msgScheme.AMsg.Head.Login_Request, loginRequest: { userId: this.TextInput.text, password: "bbb" } }) let buffer = msgScheme.AMsg.encode(msg).finish() this.socket.send(buffer) 收消息时要先装到byte里再decode出来 private receiveHandler(msg): void { this.byte.clear() ...
来源: Laya_社区 发布时间: 20180320
...abox直接扫描右侧的二维码真机调试也是如此。 TypeError: this.cxt.fillText is not a function this.cxt.fillText(text, this.cav.width / 2, this.cav.height); ^^ ...
来源: Laya_社区 发布时间: 20200409
...反映啊 var JiHuo = (function (_super) { function JiHuo() { JiHuo.super(this); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler)...
来源: Laya_社区 发布时间: 20180419
...链接 提交 1 个回复 Laya_XS 赞同来自: 不建议你这样修改,this.event(Laya.Event.CHANGE);这个是多余的,你的代码生效无非是text重新赋值内容触发了再一次排版。你可以直接在设置了文本type后,直接修改下文本的内容就可以了。 2021-07-2...
来源: Laya_社区 发布时间: 20210729
... Laya.loader.load("fonts/OPPOSANS-H.ttf", Laya.Handler.create(this, (success) => { console.log("2.8.0 字体加载是否成功:", success); Laya.Text.defaultFont = "OPPOSANS-H"; }), null, Laya.Loader.TTF) 附件 ...
来源: Laya_社区 发布时间: 20201118
HTMLDivElement富文本居右问题 const lb: HTMLDivElement = this.lb; lb.width = 100; lb.height = 24; const html1 = '<div style="float:right;"><span>1</span><span>2</span></div>'; const html2 = '<span style="float:right;">1</span>'; const html3 = '...
来源: Laya_社区 发布时间: 20190531
...stringify("a","1"); js.uname ="sdfsdf"; js.pss ="sdfsdf"; console.log(js); this.hr.send(url, js,"post","text"); 服务器端获取不到值只是 [object JSON] this.hr.send(url, js,"post","json"); 会报错,发送失败 2017-05-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20170509
...cation/x-www-form-urlencoded; charset=utf-8"); xmlHttp.once(Event.COMPLETE,this,onHttpRequestComplete); xmlHttp.once(Event.ERROR,this,errorHandler); xmlHttp.on(Event.PROGRESS,this,processHandler); function onHttpRequestComplete(e){ }; function processHandler(data){ console.log(data); }; function err...
来源: Laya_社区 发布时间: 20180202
...是这样注册,吗 Laya.loader.load("res/font.fnt", Laya.Handler.create(this, this.onLoaded),null,Laya.Loader.FONT); 应该没什么问题了,就是这样的 附件 : --> 2017-02-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20170207
... xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("http://www.baidu.com", "", "get", "text"); function processHandler(data) { console.log(data); } functi...
来源: Laya_社区 发布时间: 20180208