- 新版本IDE出错
长按 就会出现这个错误提示 reporter error:Cannot read property 'message' of null
2019-05-26 - 屏幕大小变化事件不能触发
[图片] 上图中红框中的为系统打印出来的,可以看出来屏幕由竖屏转换为横屏的过程。 请问这个变化过程有没有一个事件可以监听?
2019-04-29 - insetTextView:fail function
调用UserInfoButton wx.createUserInfoButton(Object object)接口报insetTextView:fail function 手机是iphone 5 [图片]
2018-05-14 - 微信小游戏阴影无效
function init() { var canvas = wx.createCanvas(); Laya.init(400, 400, canvas); wx.setPreferredFramesPerSecond(1); requestAnimationFrame(draw); } function draw() { Laya.stage.draw(); requestAnimationFrame(draw); } var Laya = { init: function (width, height, canvas) { var context = canvas.getContext('2d'); canvas.width = width; canvas.height = height; this.stage = new Stage(); this.stage.init(width, height, context); } } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// function Stage() { this.width = 0; this.height = 0; this.context = null; this.init = function (width, height, context) { this.width = width; this.height = height; this.context = context; }; this.draw = function () { console.log("123") this.context.clearRect(0, 0, this.width, this.height); this.context.fillStyle = "#fff"; this.context.fillRect(0, 0, this.width, this.height); this.context.font = "20px Times New Roman"; this.context.fillStyle = "blue"; this.context.fillText("Sample String", 5, 30); this.context.shadowOffsetX = 2; this.context.shadowOffsetY = 2; this.context.shadowBlur = 20; this.context.shadowColor = "#555"; } } init(); 这段代码在模拟器中能展示阴影效果,在真机中展示不出来
2018-02-28