关于wx.onWindowResize 回调执行问题
function startGame()
{
console.log(" startGame 1 ");
var sys = wx.getSystemInfoSync();
console.log(sys);
wx.onWindowResize(function (obj) {
console.log(" startGame 2 ");
});
}
startGame()
打印无法执行 onWindowResize 的回调 请问缺少什么步骤么 还是怎么