大约有 32 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0026 秒)
...ndowOnWidth=false; } if ((/Android/gi).test(navigator.userAgent)) { window.addEventListener('resize', function () { if (document.activeElement.tagName == 'INPUT' || document.activeElement.tagName == 'TEXTAREA') { window.setTimeout(function () { document.activeElement.scrollIntoViewIfNeeded(); }, 0...
来源: Laya_社区 发布时间: 20190313
...; icon.loadImage('img/test.png'); Laya.stage.addChild(icon); document.body.addEventListener("click",function(){ var kk = icon.drawToCanvas(431, 428).getContext('2d').canvas; var img = new Image(); img.src = kk.toDataURL(); document.body.appendChild(img); }); 我就用Sprite加载了一个图片...
来源: Laya_社区 发布时间: 20161107
... 2017-07-27 16:01 canvas = document.getElementById('layaCanvas'); canvas.addEventListener('touchend', runclick); canvas.addEventListener('click', runclick); 已经自己解决了,移动对click事件支持不好,只能用touchend了 cuixueying • 2017-07-28 10:50 好的,有问题及时沟通...
来源: Laya_社区 发布时间: 20170727
...我是用这个方法解决的,不知道有没有更好的方法document.addEventListener("visibilitychange", e => { if (document.hidden) { this.onBlur() } else { this.onFocus() } });原文:js检测浏览器切换到后台的方案 2019-11-11 0 0 分享 微博 QZONE 微信 古特软件 赞同...
来源: Laya_社区 发布时间: 20180522
... e.preventDefault(); }; document.addEventListener('contextmenu', this.preventContextMenu); console.log('右键菜单已禁用'); } enableRightClick() { if (this.preventContextMenu) { document.removeEventL...
来源: Laya_社区 发布时间: 20251115
...名匹配 iOS不用包名var a=false;// 注册手指按下事件document.addEventListener("touchstart",function(e){a=!a;// 实现奇数次打开 偶数次关闭// b、调用静态函数openlight 参数为aTest.call("openlight:",a); // iOS注意函数签名为 "openlight:"}); 这是官方的例子...
来源: Laya_社区 发布时间: 20190921
...: 与内容相关的链接 提交 1 个回复 qian 赞同来自: document.addEventListener( "touchstart",function(e) { console.log(">>>>>>reloadCurProcess"); reloadJS(true); }); 2018-01-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问...
来源: Laya_社区 发布时间: 20180117
...匹配. 包名+类名 var a = false; // 注册手指按下事件 document.addEventListener("touchstart",function(data){ Test.call("wxRegLogin",a); if(data.test == "test"){ var integralMall = new IntegralMall(); Laya.stage.addChild(integralMall); } }); android 里面的方法 public static void wxReg...
来源: Laya_社区 发布时间: 20180103
...: 与内容相关的链接 提交 1 个回复 Apple 赞同来自: document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false); 2018-04-10 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 yplpf 相关问题 Dialog:...
来源: Laya_社区 发布时间: 20180410
...个项目就这两句代码会报错 Uncaught TypeError: Browser.document.addEventListener is not a function at Function.AudioSound._initMusicAudio (index.js:10916) at Function.Browser.__init__ (index.js:6944) at Object.Laya.init (index.js:365) at new Football_public ( 201...
来源: Laya_社区 发布时间: 20180503