大约有 3,269 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0066 秒)
...夹,把多余的路径去掉,直接写<script src="LayaSample.js"></script> 2017-01-19 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Buzhihew 相关问题 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有...
来源: Laya_社区 发布时间: 20170119
...ew Laya.HttpRequest(); httpRequest.once(Laya.Event.COMPLETE, this, (data)=>{ let byte = new Laya.Byte(data); byte.writeArrayBuffer(data, 4); let blob = new Laya.Browser.window.Blob([data], {type:'image/apng'}); let url = Laya.Browser.window.URL.createObjectURL(blob); showImg.skin = (url); // 缓...
来源: Laya_社区 发布时间: 20190430
...ct(10, 10, 580, 470, "#000000"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是0,0,只要设置了mask,chrorme就会警告cache bitmap size larg...
来源: Laya_社区 发布时间: 20180828
...同来自: cuixueying 在HTML页面加上这句可以解决。<script>document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);</script> 2016-09-01 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 你好,这个取决于手机端浏览器的限制,la...
来源: Laya_社区 发布时间: 20160831
... } function onMouseMove(e) { if(mouseX!=0){ if(Math.abs(mouseX-ape.mouseX)>= 360){ //滑动超过多少距离 自动开奖 ape.visible = false; mouseX = ape.mouseX; } }else{ mouseX = ape.mouseX; } interactionArea.graphics.drawCircle(ape.mouseX, ape.mouseY, 20, "#000000"); } 效果如下 附件...
来源: Laya_社区 发布时间: 20170615
...constructor() { super(); this.btn_signin.on(Laya.Event.CLICK, null, () => { this.showDialog("登录成功") }); this.btn_register.on(Laya.Event.CLICK, null, () => { this.showDialog("注册功能暂未开放") }); } showDialog(context: string) { // if (this.normalDialog) { // this.normalD...
来源: Laya_社区 发布时间: 20181216
...签,看看原始的audio能不能播。 <audio src="sounds/fish.mp3"> 您的浏览器不支持 audio 标签。 </audio> 然后奇怪的事情发生了,现在可以用Laya.SoundManager播放了,不管是web audio还是h5 audio都可以了 求解释 附件 : --> SoundTest.rar 2017-08...
来源: Laya_社区 发布时间: 20170823
...r: Unexpected token: punc (,) at JS_Parse_Error.get (eval at <anonymous> (/Applications/LayaAirIDE_beta.app/Contents/Resources/app/node_modules/layacmd/node_modules/uglify-js/tools/node.js:27:1), <anonymous>:86:23) 2017-11-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20171113
... onMouseDown(e: Event): void { var touches: Array<any> = e.touches; if (touches && touches.length == 2) { this.preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, ...
来源: Laya_社区 发布时间: 20171201
...想增加一句: var View=laya.ui.View; var Dialog=laya.ui.Dialog; ----> var Box=laya.ui.Box; <-------- 请问这个文档的生成模板在哪里改? 2018-01-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20180120