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

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

161. 除了用“+"拼接,如何创建格式化字符串? [ 77%]

... // ES6: var h = 'Hello'; var w = 'World'; var helloWorld = `${h} ${w}`; console.log(helloWorld); // 用在console console.log("%s%d", "one plus one equals ", 2) 2017-10-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jxfcwys 相关问...

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

162. 用npm的protobuf导出的ts代码。然后用import { } from "" 运行到这里没反应,不继续执行,也不报错。 [ 77%]

...{ com} from "../libs/protobuf/area.js"; export function testProto():void { console.log("call testProto"); var ProtobufUtil = com.bee.protobuf; let msg = ProtobufUtil.ProtoArea.create(); let buffer = ProtobufUtil.ProtoArea.encode(msg).finish(); let decode = ProtobufUtil.ProtoArea.decode(buffer); cons...

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

163. js调用android的java代码失败。NoSuchMethodException [ 77%]

... bridge = PlatformClass.createClass("demo.JSBridge")//创建脚步代理 } console.log("test step ~~~~~~~~~~~~~~~~~~~~~~1") if(os == "Conch-ios"){ }else if (os == "Conch-android") { console.log("test step ~~~~~~~~~~~~~~~~~~~~~~2") if(bridge){ console.log("test step ~~~~~~~~~~~~~~~~~~~~~~3") bridge.c...

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

164. 关于类中方法的调用 [ 77%]

...Child(m_talkScroll); // this.onAction(); // this.onAction = function(){ // console.log("-------------hhhhhhhhhhh "); // } //第一种解决方法 onAction(); function onAction(){ console.log("这是第一种解决方法"); } //第二种解决方法 this.onAction(); } Laya.class(NpcLayer,"NpcLayer",_...

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

165. 发射射线检测不到,物体有包围盒 [ 77%]

...               //     lv.addChild(sp);             //     console.log("添加预制体");             // }));               self.camera = scene3d.getChildByName("--- ENVIRONEMENT ---").getChildByName("Main Camera");                         self.scene = scen...

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

166. 使用localToGlobal方法获取list单元格错误不准确 [ 77%]

... flag ? true : false;     return ele.localToGlobal(point, flag);  }   console.log(box); var targetXY = Utils.localToGlobal(box, false);  console.log(targetXY)       附件 : --> 2017-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

167. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 76%]

...一个测试代码,压根就没有功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("re...

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

168. 排行榜上的玩家头像绘制问题 [ 76%]

...t;undefined") { friendRankList.destroy(); delete (friendRankList); // console.log(friendRankList); } friendRankList = new FriendRankListView(); // friendRankList.visible =false Laya.stage.addChild(friendRankList); var dataT = []; data.forEach((item, index) => { // console.log(item) var cupIm...

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

169. 在加载多个资源的时候,加载进度异常 [ 76%]

...create(this, function(){ }),  Laya.Handler.create(this, function(e){    console.log(e) } , Laya.Loader.ATLAS);   此时进度e的值只有一个数0.41 ,不会从0到1,这是什么原因? 2018-01-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

170. 如何看到Laya运行器的Log [ 76%]

...,ios插在mac上,xcode可以看日志 189*****192 • 2017-06-21 10:23 console.log(xxx);

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