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

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

71. Android真机调试JavaScript(TypeScript-LayaNative原生服务-LayaNative基础文档) [ 72%]

...ini,修改JSDebugMode的值,设置需要的调试模式。如图1: ![](img/android_debugmode.png) 图1 JSDebugMode的取值和含义如下: |取值|含义| |:--:|:--:| |0|关闭调试功能| |1|Debug/Normal模式| |2|Debug/Wait模式| **Tips:** 当项目正式发布后,请将JSDebugMode的...

来源: Laya2.0_文档 发布时间: 20210715

72. laya2.0版本,富文本HTMLDivElement中<p>标签里使用<br />标签时报错,在<span>里也不行 [ 72%]

...签会自动换行,div不会,比如:&lt;p&gt;abc&lt;/p&gt;      * img:图片标签,比如:&lt;img src='res/boy.png'&gt;&lt;/img&gt;      * br:换行标签,比如:&lt;div&gt;abc&lt;br/&gt;def&lt;/div&gt;      * style:样式标签,比如:&lt;div style='width:130px;height:50px;col...

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

73. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 72%]

... public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image;         //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Laya.Image();             //this.text = new Laya.Label(); this.addChild(this.img); ...

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

74. list item 添加事件后无法监听 [ 72%]

...nsole.log(index);     // console.log(cell.dataSource);     cell.setImg(cell.dataSource[index]);     cell.on(Laya.Event.CLICK, function() {         console.log("click")     }) }  function onSelect(index) {     console.log("当前选择的索引:" + index); } function cr...

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

75. laya画布问题 [ 71%]

...用js原生方法调用toDataURL('image/png',1)方法,在创建一个img元素用来放url,图片了没有任何东西显示,空白的!       因为我要截取3d模型,所以我的想法和做法就是,获取到laya 的渲染画布,把里面的元素转成图片   var tempCan:a...

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

76. 项目工程目录说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...ht reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:28:00 img{cursor:pointer}

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

77. 我想问下如果要调用手机本地相册,能不能用HTMLDivElement?该怎么用 [ 71%]

...文件2进制 file.onload = function(e){ var base64 = e.target.result; var img = new Image();//创建一个图片对象 img.onload = function (){ var canvas = $("#canvas").get(0); var ctx = canvas.getContext("2d"); //使用drawImage显示图片 ctx.drawImage(img,0,0,canvas.width,canvas.height); } //...

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

78. 为什么动画设置大小不统一 [ 71%]

...动画设置大小不统一 var bounds = ani.getGraphicBounds(); ani.scale(img.width/bounds.width,img.height/bounds.height) 这里我获得动画的边界 获取得到 然后img的宽高都是80 我想设置每个动画宽高都为80 这样设置为什么不能实现? 2017-06-29 添加评论 免...

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

79. 为什么contentWidth获得宽度不一样 [ 71%]

...情内容宽度会不一样 txt = txt.replace(FaceView.repl[i],&quot;&lt;img src='res/ChatFace/face&quot;+i+&quot;.png'&gt;&lt;/img&gt;&quot;); console.log(div.contextWidth+&quot;内容宽度&quot;);

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

80. VScode本地调试 · LayaAir3.0文档 · LAYABOX [ 70%]

...ht reserved,powered by LayaAir Engine更新时间: 2023-03-03 17:34:15 img{cursor:pointer}

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