会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
菜鸟小何
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
11
12
13
14
15
16
17
18
19
···
26
下一页
2020年2月23日
从零开始将自己的项目部署到阿里云服务器
摘要: https://app.yinxiang.com/fx/f011932f 9d6e 4cb0 a5ed d53b5ead8607
阅读全文
posted @ 2020-02-23 00:26 菜鸟小何
阅读(419)
评论(0)
推荐(0)
2020年2月11日
生命周期
摘要: beforecreate:实例初始化,获取不到数据 credted:能获取到数据 beforemount:获取不到dom元素 mounted:能获取到dom元素 beforeupdated:数据更新之前 updated:数据更新后 beofredestory:实例销毁之前 destoryed:实例销
阅读全文
posted @ 2020-02-11 15:29 菜鸟小何
阅读(167)
评论(0)
推荐(0)
2020年1月19日
vue使用keep-alive出现的的activated和deactivated生命周期
摘要: <keep-alive>包裹的动态组件会被缓存,它是一个抽象组件,它自身不会渲染一个dom元素,也不会出现在父组件链中。当组件在 <keep-alive> 内被切换,它的 activated 和 deactivated 这两个生命周期钩子函数将会被对应执行。 如<keep-alive>包裹两个组件:
阅读全文
posted @ 2020-01-19 11:54 菜鸟小何
阅读(1941)
评论(0)
推荐(0)
2020年1月17日
自定义指令
摘要: 自动聚焦指令 全局定义(main.js): Vue.directive('focus', { // 此处不是一个函数 // 当被绑定的元素插入到 DOM 中时…… inserted: (el) => { // el代表DOM元素 el.focus() // js操作DOM } }) 局部定义(XX.
阅读全文
posted @ 2020-01-17 10:15 菜鸟小何
阅读(171)
评论(0)
推荐(0)
2020年1月15日
导航守卫。404页面设置
摘要: 全局导航守卫:(在router.js中添加) router.beforeEach((to,from,next)=>{ if(to.name!=='login'){ if(localStorage.getItem('userid')){ next() }else{ next('login') } }e
阅读全文
posted @ 2020-01-15 14:09 菜鸟小何
阅读(266)
评论(0)
推荐(0)
mixins使用混入引入组件,并可以使用公共函数。组件类同名函数可以替代公共函数。使用$ref获得子元素数据和元素dom节点。使用$parents获得父元素数据。slot插槽的使用
摘要: 父组件: <template> <div class="box"> <Header > <div slot="left">你好</div> <div slot="right" @click="userFn">你好</div> </Header> <div class="content"> <h1 r
阅读全文
posted @ 2020-01-15 09:39 菜鸟小何
阅读(489)
评论(0)
推荐(0)
2020年1月2日
put、delete、post、get四种传参方式
摘要: PUT: this.$http.put('url', { modifyTime:this.sizeForm.modifyTime, mqttRes:this.sizeForm.mqttRes, udpRes:this.sizeForm.udpRes, refId:this.sizeForm.refI
阅读全文
posted @ 2020-01-02 12:01 菜鸟小何
阅读(14273)
评论(0)
推荐(0)
2019年12月31日
合并数组与合并对象
摘要: https://www.cnblogs.com/jiangyuzhen/p/11014021.html
阅读全文
posted @ 2019-12-31 15:16 菜鸟小何
阅读(235)
评论(0)
推荐(0)
2019年12月25日
mapState, mapActions
摘要: <template> <div class="box"> <header class="header">分类头部</header> <div class="content"> <div class="kind"> <div class="left"> <ul> <li :class="kindind
阅读全文
posted @ 2019-12-25 23:41 菜鸟小何
阅读(474)
评论(0)
推荐(0)
2019年12月18日
超级解构
摘要: let a = { b = { c:1 } } console.log(a.b.c) //1 let {b} = a 相当于 b = a.b console.log(b.c) //1 let { b: { c } } = a b来源于a.b c来源于a.b.c console.log(c) //1
阅读全文
posted @ 2019-12-18 22:12 菜鸟小何
阅读(190)
评论(0)
推荐(0)
上一页
1
···
11
12
13
14
15
16
17
18
19
···
26
下一页
公告