大约有 2,110 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0074 秒)
...ass(className); jsProxy.call("playVideo", url); } ---JSProxy.h #import <Foundation/Foundation.h> @interface JSProxy : NSObject +(void)playVideo: (NSString*) url; // 只支持对象类型String类型用NSString @end ---JSProxy.mm #import "JSProxy.h" #import "ViewController.h" #import <...
来源: Laya_社区 发布时间: 20170919
...,第一次使用会拷贝实例对象。 BaseRender materials : Vector.<BaseMaterial> 获取潜拷贝实例材质列表,第一次使用会拷贝实例对象。 BaseRender receiveShadow : Boolean 获得是否接收阴影属性 BaseRender sharedMaterial : BaseMaterial 返回第一个材质。...
来源: Laya2.0_api 发布时间: 20190513
...m(items):void{ var posY = 0; var data: Array<any> = []; for(var i= 0 ;i< items.UserWareList.length;i++){ var itemList = new BagItem(items.icon,items.name,items.count); itemList.pos(70,posY); ...
来源: Laya_社区 发布时间: 20170310
...:71304) at new MailWin (eval at __proto.loadJs (Nxsg.max.js:52044), <anonymous>:10904:20) at MailLockWin.__proto.setWin (Nxsg.max.js:52913) at new MailLockWin (eval at __proto.loadJs (Nxsg.max.js:52044), <anonymous>:866:9) at Nxsg.__proto.loadJs (Nxsg.max.js:52046...
来源: Laya_社区 发布时间: 20180306
...guo168a 赞同来自: 在index.html中加入下面两句话就可以了 <meta name="renderer" content="webkit"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 2017-03-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...
来源: Laya_社区 发布时间: 20170117
...点,但是比起WEB 还是慢了7倍以上。 var loadList: Array<string> = [];//70张图片 for (let i = 1; i < 70; i++) { loadList.push("resources/test/a ("+i+").png"); } let nt = Date.now(); Lay...
来源: Laya_社区 发布时间: 20240628
fatal error: 'string' file not found 导入头文件 #import <conchRuntime.h> 后编译会报错。望提供解决方案 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; color: #a31515; background-color: #ffffff} span.s1 {color: #0000ff} 附件 : --> 2019-07-25 添加评论 免费...
来源: Laya_社区 发布时间: 20190725
...效果 var a:Sprite = new Sprite(); var count:int = 0; for(var i:int=0; i<200; i++) { for(var j:int=0; j<100; j++) { if(count == 10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); b.graphics.drawTex...
来源: Laya_社区 发布时间: 20181113
...abs(this.onMouseDownY - e.target.mouseY); if(offsetY < 10)//是否滑动的条件 { if( moveLen >10) { console.log("Move right!"); ...
来源: Laya_社区 发布时间: 20160823
...2222"); if (this.ball.y + this.vy >= this.img1 ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; console.log("33333"); } if (this.ball.x + this.vx > this.stageWidth ||this.ball.x + this.vx < 0) { this.vx = -this.vx; console.log("444444"); } if (this.ball.y > 1200) { this.ball.x = 28...
来源: Laya_社区 发布时间: 20171108