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

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

1. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 100%]

...); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行上边这段代码呢?打开谷歌浏览器,随便打开一个空白网页,F12,把上面的代码粘贴到控制台,然后回车,就能看到上面截图的效果。...

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

2. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 99%]

...); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行上边这段代码呢?打开谷歌浏览器,随便打开一个空白网页,F12,把上面的代码粘贴到控制台,然后回车,就能看到上面截图的效果。...

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

3. 启动画面LoadingView(TypeScript-LayaNative原生服务-LayaNative基础文档) [ 93%]

...新进度条 伪代码如下: ```javascript var nPercent=0; var image1 = document.createElement('img'); image1.onload=function() { if(window.loadingView){ nPercent+=33; window.loadingView.loading(nPercent); } } image1.src = "a.png"; var image2 = document.createElement('img'); image2.onload=functio...

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

4. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 93%]

...); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行呢?打开谷歌浏览器,随便打开你一个空白网页,F12,把上面的代码粘贴到控制台,然后回车,就看到上面截图的效果。或者新建个htm...

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

5. webview(TypeScript-LayaNative原生服务-LayaNative进阶) [ 89%]

...是否能被关掉: * 设置为`false`时: 代码如下: ```typescript document.addEventListener('touchstart',()=>{ if(conch){ var l = 50; var t = 50; var w = window.innerWidth - l * 2; var h = window.innerHeight - t * 2; conch.setExternalLinkEx('http://www.layabox.com',l,t,w,h,false); // canclo...

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

6. 关于iOS-IPV6(TypeScript-LayaNative原生服务-LayaNative基础文档) [ 77%]

...: [ipv6测试方法官方文档](https://developer.apple.com/library/mac/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html#//apple_ref/doc/uid/TP40010220-CH213-SW1) **友情提示:** ...

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