es6某些语法开发者工具无法通过编译
发布于 5 年前 作者 xiuyingxiang 7502 次浏览 来自 问答

wx.getSystemInfo({

success: e = > {

this.globalData.StatusBar = e.statusBarHeight;

this.globalData.CustomBar = e.platform == ‘android’ ? e.statusBarHeight + 50 : e.statusBarHeight + 45;

}

})

2 回复

哥,ALT+SHIFT+F 整理下代码好伐

明显打错了呀

success: e  = >

success: e =>

回到顶部