vue中报错:data functions should return an object

vue中报错如下:

clipboard.png

原因是:
data里没有写return{}
正确书写格式应该是:

clipboard.png

评论

暂无评论