会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
前端渣的博客园
博客园
首页
新随笔
联系
订阅
管理
2020年8月31日
vue组件内变量不能以下划线开头
摘要: 封装组件内data变量不能以“_”开头,如以下组件: <template> <div> <div v-for="item in _dataSource" :key="item.name"> {{item.name}} </div> </div> </template> <script> export
阅读全文
posted @ 2020-08-31 13:35 前端渣的日常记录
阅读(2537)
评论(0)
推荐(0)
编辑
公告