tool.wxs
文件
代码示例
function myFunc(){
}
module.exports = {
myFunc
}
报错:
Expected exp
34 | }
35 |
36 | module.exports = {
| ^
37 | myFunc
38 | }Uncaught FrameworkError
Unexpected token ‘<’
SyntaxError: Unexpected token ‘<’
原因:小程序wxs
不支持简写!!