uniapp编译成小程序踩坑(3)MiniProgramError Cannot read property ‘dataset‘ of undefined TypeError: Cannot read
·
前几天打包的时候发现编译不成功

后来发现是因为其他同事使用了@change='change(arguments, item.id)'这种写法进行传参,改为@change='e => change(e, item.id)'就可以成功编译了
另外,也可以通过小程序的写法 通过:data-id="item.id"进行传参,也可以成功
更多推荐


所有评论(0)