上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 63 下一页
摘要: 表单修饰符: 1、lazy:懒加载 <input type="text" v-model="projectName" /> {{ projectName }} 此时输入框执行的事件是input事件,实时同步(双向绑定) <input type="text" v-model.lazy="project 阅读全文
posted @ 2020-03-11 14:32 吴小明- 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1、vue的优点? 轻量级框架:只关注视图层,是一个构建数据的视图集合,大小只有几十kb 简单易学:国人开发,中文文档,不存在语言障碍,易于理解和学习 双向数据绑定:保留了angular的特点,在数据操作方面更为简单 组件化:保留了react的优点,实现了HTML的封装和重用,在构建单页面应用方面有 阅读全文
posted @ 2020-03-10 14:17 吴小明- 阅读(455) 评论(0) 推荐(0) 编辑
摘要: export导出一个变量值,用 import {} 接收 api/request.js utils/utils.js export default导出一个对象,对象中有属性和方法,用 import 变量名 接收,再用对象.属性、对象.方法 api/index.js utils/localStorag 阅读全文
posted @ 2020-03-10 00:15 吴小明- 阅读(464) 评论(0) 推荐(0) 编辑
摘要: ### 渲染时因异步易报错的点 深层次的找到某个值: <div>{{childrenList[0].class2Name.name}}</div> 此时容易报错: vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in render: "TypeError: 阅读全文
posted @ 2020-03-09 22:46 吴小明- 阅读(635) 评论(0) 推荐(0) 编辑
摘要: better-scroll向下拉动回弹不置顶 pullDownRefresh: { threshold: 50, // 当下拉到超过顶部 50px 时,触发 pullingDown 事件 stop: 0 // 刷新数据的过程中,回弹停留在距离顶部还有 0px 的位置 } better-scroll的 阅读全文
posted @ 2020-03-08 23:45 吴小明- 阅读(256) 评论(0) 推荐(0) 编辑
摘要: height: calc(100vh - 100px); 屏幕高度减去100px flex-shrink:0; 防止控件压缩变形 outline:none; 取消input选中时的边框 width:max-content; 最大内容区宽度 阅读全文
posted @ 2020-03-08 21:56 吴小明- 阅读(151) 评论(0) 推荐(0) 编辑
摘要: ### mock数据(模拟数据) json-server: 安装:npm install json-server -g(cmd终端中安装) 启动服务:json-server goods.json mock.js: 安装:npm i mockjs src下新建mock/test.js: const m 阅读全文
posted @ 2020-03-08 01:26 吴小明- 阅读(425) 评论(0) 推荐(0) 编辑
摘要: ### City页面数据渲染-难点:cityList数据结构分析 ①api/index.js中添加city接口: cityList:{ city:"/v3/city" } ②api下新建request.js: import http from "@utils/request.js"; import 阅读全文
posted @ 2020-03-06 01:07 吴小明- 阅读(527) 评论(0) 推荐(0) 编辑
摘要: ### 技术栈 vuex axios vue-lazyload vue-router UI框架 vant vue-touch better-scroll UI组件封装 JS组件封装 vue-awesome-swiper 安装插件:npm i axios vant vue-touch@next bet 阅读全文
posted @ 2020-03-01 22:16 吴小明- 阅读(868) 评论(1) 推荐(0) 编辑
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 63 下一页