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

大约有 190 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0036 秒)

21. Laya下怎么实现复制 [ 86%]

...div> <button class="btn" data-clipboard-action="copy" data-clipboard-target="div">Copy</button>  <!-- 2. Include library --> <script src="../src/Frame/ThirdLibs/clipboard.min.js"></script>  <!-- 3. Instantiate clipboard --> <script> var clipboard = new ...

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

22. 屏幕适配-屏幕适配 [ 86%]

...)(); function onBoyClick(e) { //点击后小人会放大缩小 var boy = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } function onTxtClick(e) { //点击后切换适配模式 e.stopPropagation(); index++; if (index >= modes.length) index = 0; Laya.stage.scaleMod...

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

23. 屏幕适配-屏幕适配 [ 86%]

....onResize); } onBoyClick(e) { //点击后小人会放大缩小 let boy = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } onTxtClick(e) { //点击后切换适配模式 e.stopPropagation(); index++; if (index >= modes.length) index = 0; Laya.stage.scaleMode = modes...

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

24. 分享问题解决,关键词:canvas不在左上角,鼠标点击位置偏移怎么办 [ 83%]

...event._stoped = false; _this._event.nativeEvent = nativeEvent || e; _this._target = null; var docElem = document.documentElement var win = document.defaultView var clientBox = Browser._container.getBoundingClientRect() this._point.setTo((e.pageX || e.clientX)-clientBox.x - win.pageXOffset - docElem....

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

25. 如何在按钮监听中获取按钮本身 [ 82%]

...钮监听CLICK事件,点击哪个就是哪个,在事件回调里用e.target获取,,,如果我理解有误,可以提供一个例子我们调试看下! 2017-09-12 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 wk003a1 相关...

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

26. Laya的Dialog上如果有按钮 我希望点击到按钮或者其他可以相应的控件 不会触发拖动效果 [ 82%]

...s.onMouseDown); } }  onMouseDown(e: Laya.Event) { // console.log(e.currentTarget, e.target); if(e.target == this) { this.startDrag(); } else { this.stopDrag(); } }   判断一下点击对象是否是自己。才处理拖动。 2019-11-21 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

27. tree异步选中问题 [ 82%]

... • 2018-03-24 14:57 已解决: if (e.type == Laya.Event.CLICK) { if (e.target.name == "arrow") { //Tree的开/关,当打开一个时,另一个关闭 var item:Cell = e.target.parent as Cell; if (item.dataSource.isOpen == true) { if (this.selectedIndex == -1) { this.selectedIndex = i...

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

28. 安卓打包 APK的几个错误日志 求大神帮分析 [ 81%]

...hrome出现错误: Error processing launch: Error Could not attach to main target 2.2.0beta4 发布微信小游戏,安卓设备加载场景黑屏 用了第三方socket类 项目在IDE上可以连接正常运行,为什么打包APK之后在手机上就连接不上socket 图集打包找不到图集...

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

29. android真机调试频繁报出 error [ 81%]

...hrome出现错误: Error processing launch: Error Could not attach to main target 【带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined LayaAir2D示例 Mac 2.0.0beta3 Chrome调试黑屏 路径是对的,但老是,调试控制台提示:错误,图片是IDE...

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

30. 发布的apk构建工程,运行调试连上项目后报E/MediaCodecList: Could not get codec capabilities [ 81%]

...hrome出现错误: Error processing launch: Error Could not attach to main target 如何通过命令行工具构建和发布项目 循环依赖不能运行 Circular dependency: 【带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined 用了第三方socket类 项...

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