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

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

21. laya.ui.TextInput_API3.0 [ 77%]

.../Protected All Inherited Externals Only exported Menu Globals "laya/ui/TextInput" TextInput Class TextInput TextInput 类用于创建显示对象以显示和输入文本。 example 以下示例代码,创建了一个 TextInput 实例。 package { import laya.display.Stage; import laya.ui.TextInput;...

来源: Laya3.0_api 发布时间: 20231115

22. 如何监听移动端软键盘的弹出和收回? [ 77%]

... cuixueying 赞同来自:   调用移动端的软键盘,一般是和TextInput的操作绑定的。   当点击输入文本框进人输入状态的时候移动端会自动调用软键盘,当输入完毕,点击输入文本框的外部区域或关闭软键盘按钮可完成软键盘收回状态...

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

23. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 76%]

输入文本组件(TextInput)1. LayaAir IDE中使用TextInput1.1 创建TextInput1.2 TextInput属性1.3 脚本控制TextInput2. Textinput代码创建输入文本组件(TextInput) 1. LayaAir IDE中使用TextInput 文本输入框是游戏中经常会用到的一个UI组件,任何需要输入的时...

来源: Laya3.0_文档 发布时间: 20251010

24. 无法触发浏览器文件上传框 [ 76%]

...ton; } private onClick(): void { // 触发浏览器文件上传框 let fileInput = Laya.Browser.document.getElementById('file'); fileInput.click(); console.log(fileInput);//input#file } } new GameMain();在laya里无法触发浏览器<input type="file" id="file">文件上传框? 附件 : -->...

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

25. laya.ui.TextInput [ 76%]

...cumentationAll Packages | All Classes | Index | Frames No Frames TextInputProperties | Methods | Events Packagelaya.uiClasspublic class TextInputInheritanceTextInput Label UIComponent Sprite Node EventDispatcher ObjectSubclasses TextArea TextInput 类用于创建显示对象以显示和输...

来源: Laya2.0_api 发布时间: 20190513

26. laya.ui.TextArea_API3.0 [ 75%]

... "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textArea:TextArea = new TextArea("这个一个TextArea实例。");//创建一个 TextArea 类的实例对象 ...

来源: Laya3.0_api 发布时间: 20231115

27. TextInput怎么执行focus()? [ 75%]

TextInput怎么执行focus()? 怎么通过按钮打开键盘输入啊?没找到这个方法呀 2018-09-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Nothing 赞同来自: 官方有没有人来说下啊,...

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

28. ts怎么调用input file弹框选择本地文件 [ 75%]

ts怎么调用input file弹框选择本地文件 这是index.html加的 <input type="file" id="file"> <script type="text/javascript"> function openFile(){ document.getElementById("file").click(); }   ts里调用 openFile() 弹不出文件选择框 请问该用什么方法   2017-07-06...

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

29. Layabox web 复制一段文字到剪贴板 [ 74%]

...lean{         let re: boolean;         try {             let input = document.createElement("input");             input.value = str;             document.body.appendChild(input);             input.select();             input.setSelectionRange(0, input.value.leng...

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

30. 加速器是不是不支持input:file [ 73%]

加速器是不是不支持input:file  <div class="upload-wrap" id="upload" style="left: 0px; top: 0px; width: 0px; height: 0px; display: none;">     <input type="file" class="upload-pic" id="upFile" accept="image/jpeg,image/png" value="upload Img">     <span class="upload-tex...

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