会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
每天都要进步一点点
善始者实繁,克终者盖寡。 技术栈:angular + ionic + vue + mint-ui + react-native + teaset + h5plus + mui + nodejs + webpack + gulp + ES6 + vux + typescript2 + weex + weex-ui + 微信小程序 + react + ant-design + ant-design-mobile + material-ui + nervjs + taro + taro-ui + spring boot
博客园
首页
新随笔
联系
订阅
管理
2017年9月29日
props default 数组(Array)/对象(Object)的默认值应当由一个工厂函数返回
摘要: 1.场景: Object: Array: 2.场景 解决方案: 使用 v-for 外层 div 就变成 根元素,因为 一个 template 的根元素不能为多个,需要在外层嵌套一层 div 组件中引用:
阅读全文
posted @ 2017-09-29 13:57 每天都要进步一点点
阅读(1024)
评论(0)
推荐(0)
公告