随笔分类 -  Vue

摘要:最近终于忙里抽空,总结项目经验了 index页面包含三个链接导航。page1-->page2-->page3.依次前进,每次前进到一个新页面都需要获取数据,而按下后退键后,从page3返回到page2,page2不再获取新数据,而是使用之前缓存的数据。从page2返回到page1时,page1不再获 阅读全文
posted @ 2021-05-14 15:05 前端小超人 阅读(717) 评论(0) 推荐(0)
摘要:【手动实现下拉刷新】可以用vue-pull-refash 插件代替 //下拉刷新 let scroll = this.$ref.scroll // 获取当前要拖拽的元素 let top = scroll.offsetTop let distance = 0 scroll.addEventListen 阅读全文
posted @ 2020-03-23 18:05 前端小超人 阅读(8566) 评论(0) 推荐(0)
摘要:日常总结 希望能帮到大家 1 mock/sever.js //创建服务 let http=require('http') let fs=require('fs') let url=require('url') let siders=require('./sliders') http.createSe 阅读全文
posted @ 2020-03-20 18:19 前端小超人 阅读(720) 评论(0) 推荐(0)
摘要:tips:解决了e.target中输入中文 会把拼音也输入的情况 1 html 阅读全文
posted @ 2019-11-29 15:30 前端小超人 阅读(3069) 评论(0) 推荐(0)
摘要:官方文档 :https://www.iviewui.com/components/tree 效果图 1 主体分析 2 代码分析 阅读全文
posted @ 2019-11-04 15:03 前端小超人 阅读(4136) 评论(0) 推荐(0)
摘要:<div id="vue_det"> <p>全选:</p> <input type="checkbox" id="checkbox" v-model="checked" @change="changAllChecked"/> <label for="checkbox"> {{checked}} </ 阅读全文
posted @ 2018-10-11 14:29 前端小超人 阅读(325) 评论(0) 推荐(0)
摘要:var app=new Vue({ el:'#app', data:{ a:2 }, beforeCreate:function(){ console.log("实例创建之前"); }, created:function(){ console.log("a is:"+this.a); console 阅读全文
posted @ 2018-04-25 15:04 前端小超人 阅读(193) 评论(0) 推荐(0)