• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 23 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0031 秒)

1. 用正则的方式检验打成APP会有问题 [ 100%]

...正则的方式检验打成APP会有问题 var pat:RegExp=new RegExp(/^[\u4e00-\u9fa5a-zA-Z0-9.-_@]+$/,"i");              if(param!=null){                 for(var i:int=0;i<param.length;i++){                     if(param[i][1]!=""){                ...

来源: Laya_社区 发布时间: 20170813

2. [LayaAir2]某些手机播放视频偶现崩溃,日志显示缓冲区被丢弃 [ 97%]

...800,id:0,api:3,p:559,c:21301) queueBuffer: slot 0 is dropped, handle=0x74db4e0a40 [SurfaceTexture-0-21301-0](this:0x74cf4b3800,id:0,api:3,p:559,c:21301) queueBuffer: slot 4 is dropped, handle=0x74ce280200 [SurfaceTexture-0-21301-0](this:0x74cf4b3800,id:0,api:3,p:559,c:21301) queueBuffer: slot 1 is d...

来源: Laya_社区 发布时间: 20240821

3. 文本-字符限制 [ 90%]

...s(50, 180); input = createInput(); input.pos(50, 210); input.restrict = "\u4e00-\u9fa5"; } function createLabel(text) { var label = new Text(); label.text = text; label.color = "white"; label.fontSize = 20; Laya.stage.addChild(label); return label; } function createInput() { var input = new Input();...

来源: Laya_示例 发布时间: 20260303

4. 文本-字符限制 [ 90%]

... 180); input = this.createInput(); input.pos(50, 210); input.restrict = "\u4e00-\u9fa5"; } createLabel(text) { const Text = Laya.Text; let label = new Text(); Laya.stage.addChild(label); label.text = text; label.color = "white"; label.fontSize = 20; return label; } createInput() { const Input = Laya...

来源: Laya2.0_示例 发布时间: 20260303

5. 输入框限制输入字符 [ 74%]

...赞同来自: 找到了,已经解决。直接在编辑器restrict填上\u4e00-\u9fa5即可。 2017-08-26 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 好的,有问题及时沟通! 2017-08-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已...

来源: Laya_社区 发布时间: 20170826

6. 突然无法调试 [ 73%]

...s\Administrator\AppData\Roaming\Tencent\Users\546106005\QQ\WinTemp\RichOle\4E9W6K736JO%`C@)C0%99BT.png 附件 : --> 2022-06-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Yan 赞同来自: 请问您是进...

来源: Laya_社区 发布时间: 20220629

7. hanzi 正则表达式无效 [ 73%]

...提交 1 个回复 156*****215 赞同来自: 更换成 utf-8 中文编码 u4e00;-u9fa5;  倒是可以了,也可能是facebook这个测试上传工具有问题,公测中 2019-09-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 156**...

来源: Laya_社区 发布时间: 20190918

8. TextInput.restrict只允许中英文、数字输入怎么做鸭? [ 71%]

...目前引擎不支持这么复杂的限制条件 TextInput.restrict = ^[\u4E00-\u9FA5A-Za-z0-9]+$ 2019-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 就是把单独限制的 做一...

来源: Laya_社区 发布时间: 20190117

9. Android 浏览器环境下,输入法隐藏时闪屏问题 [ 66%]

...安卓的webview里,qq浏览器里,都会闪,手机型号华为nove 4e 。 用我发的示例工程可以重现 rainysky • 2020-10-12 14:57 oppo手机上也有这个问题

来源: Laya_社区 发布时间: 20201007

10. laya 1.0 源码中 RunDriver.as里measureText的问题 [ 66%]

...s里measureText的问题 private static var hanzi:RegExp = new RegExp("^[\u4E00-\u9FA5]$"); private static var fontMap:Array = ; public static var measureText:Function = function(txt:String, font:String):* { var isChinese:Boolean = hanzi.test(txt); if (isChinese && fontMap[font]) { return fo...

来源: Laya_社区 发布时间: 20190610