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

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

1. 文本-字符限制 [ 100%]

...pos(50, 100); input = createInput(); input.pos(50, 130); input.restrict = "a-zA-Z"; createLabel("只允许输入中文字符:").pos(50, 180); input = createInput(); input.pos(50, 210); input.restrict = "\u4e00-\u9fa5"; } function createLabel(text) { var label = new Text(); label.text = text; label...

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

2. 文本-字符限制 [ 99%]

...0, 100); input = this.createInput(); input.pos(50, 130); input.restrict = "a-zA-Z"; this.createLabel("只允许输入中文字符:").pos(50, 180); input = this.createInput(); input.pos(50, 210); input.restrict = "\u4e00-\u9fa5"; } createLabel(text) { const Text = Laya.Text; let label = new Text();...

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

3. 手机端 小键盘 [ 78%]

...输入模式 例如: 值运行输入 字母 时 this.Account.restrict = "a-zA-Z" 但如何让他打开小键盘的时候 直接变成 输入字母模式? 2017-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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