es6某些语法开发者工具无法通过编译

发布于 6 年前作者 xiuyingxiang7688 次浏览最后编辑 6 年前来自 ask

wx.getSystemInfo({

success: e = > {

this.globalData.StatusBar = e.statusBarHeight;

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

}

})

2 回复
yangqin
yangqin1 楼6 年前

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

wwang
wwang2 楼5 年前

明显打错了呀

success: e  = >

success: e =>