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

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

241. 解决跨域相关! [ 77%]

...,在请求特定的域名下加上跨域标识,这里以nginx为例: http {   ......   add_header Access-Control-Allow-Origin *;   add_header Access-Control-Allow-Headers X-Requested-With;   add_header Access-Control-Allow-Methods GET,POST,OPTIONS;   ...... } 这样就可以实现GET,POST...

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

242. session获取不到 [ 77%]

session获取不到 我用http post请求。do,在web端同样请求一个.do,web项目里面的http请求没有问题,可以检测到session,但是换成laya的去请求,拿不到session的值,HttpSession session = request.getSession(false); 拿不到 2017-03-17 添加评论 免费帖 --> ...

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

243. layaair1.78版本 textarea和textinput在电脑平台时一点击整个canvas往上移动。 [ 77%]

...    <meta name='360-fullscreen' content='true' />     <meta http-equiv='expires' content='0' />     <meta name='laya' screenorientation='landscape' />     <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>     <meta http-equiv='expires' content='...

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

244. 关于 iframe跳转地址 [ 77%]

...nguage="javascript"> var arguments = window.location.search; var url = "http://119.29.138.145/bgame/in ... 3B%3B // http://119.29.138.145/bgameClient/index.html(游戏地址 体验服) // http://119.29.138.145/bgame/index.html(游戏地址 正式服) var iframe = document.createElement("iframe");...

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

245. 微信小游戏如何使用ttf字体? [ 77%]

...戏如何使用ttf字体? 按照这个链接的方式使用不起作用 http://ask.layabox.com/question/332     2018-05-28 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 brooshe 赞同来自: 陶子 、freedom6...

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

246. load方法加载cdn上面的图片资源的时候直接报了跨域不同源的问题,怎么破? [ 77%]

...te(this, this.startLoaded)); 代码是这样的 报错 Access to Image at 'http://caifu-1251177394.file.myqcloud.com/beta/book/bookLaya/img/progressBar$bar.png' from origin 'http://bookportal.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested re...

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

247. layaAirIDE 打包APK 后 真机运行报错 [ 77%]

layaAirIDE 打包APK 后 真机运行报错 lert=http://stand.alone.version/main.min.js:1: ReferenceError: createApes is not defined i=new RunGame;Laya.stage.addChild(i)}!function(){createApes()}(function(){function i(){this.BG_WIDT ReferenceError: createApes is not defined at BG_WIDTH (http://stan...

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

248. 截屏无法实现 [ 77%]

...的链接 提交 2 个回复 cuixueying 赞同来自: 参考下这个吧:http://ask.layabox.com/question/4150 2017-04-23 0 0 分享 微博 QZONE 微信 gmajrtfp 赞同来自: static View gv;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(s...

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

249. AS3与JS混合编码(ActionScript-2D进阶篇(AS3)-扩展模块) [ 76%]

...常用的jquery.js来进行讲解。 ​ 首先在jquery的[官网下载](http://jquery.com/download/)jquery.js版本,示例中我们用`jquery-3.2.0.min.js`。在项目入口的index.html页面(通常位于“`bin\h5\`”目录下)添加``。 ​ *Tips: 第三方库引入必须添加在LayaAi...

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

250. 2d示例项目打包为微信小游戏报错,Cannot read property 'LESS' of null [ 76%]

...ll TypeError: Cannot read property 'LESS' of null     at Function.value (http://127.0.0.1:43542/game/li ... :19438)     at Object.value [as init] (http://127.0.0.1:43542/game/li ... 515524)     at new Main (http://127.0.0.1:43542/game/js/bundle.js:267:90)   LESS是LayaGL.instance的属性,...

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