会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
2018年12月22日
vuex简单使用
摘要: 1、创建src/store/index.js 仓库所在地 暴露store 2、main.js入口文件处引入store,挂载到Vue根实例中 3、创建store/movie.js 电影页面对应的状态管理模块 export default { state: { }, getters: { }, acti
阅读全文
posted @ 2018-12-22 00:38 jswzy
阅读(241)
评论(0)
推荐(0)
记一下Slot的使用
摘要: 1、组件中有单个或多个未命名slot标签时,如下: <Child><span style=”color:red;”>hello world</span></Child> <template> <div> <slot></slot> <slot style=”color:blue;” >这是在slot
阅读全文
posted @ 2018-12-22 00:22 jswzy
阅读(342)
评论(0)
推荐(0)
jswzy
公告
导航
博客园
首页
新随笔
联系
订阅
管理