摘要: better-scroll向下拉动回弹不置顶 pullDownRefresh: { threshold: 50, // 当下拉到超过顶部 50px 时,触发 pullingDown 事件 stop: 0 // 刷新数据的过程中,回弹停留在距离顶部还有 0px 的位置 } better-scroll的 阅读全文
posted @ 2020-03-08 23:45 吴小明- 阅读(262) 评论(0) 推荐(0)
摘要: height: calc(100vh - 100px); 屏幕高度减去100px flex-shrink:0; 防止控件压缩变形 outline:none; 取消input选中时的边框 width:max-content; 最大内容区宽度 阅读全文
posted @ 2020-03-08 21:56 吴小明- 阅读(156) 评论(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 吴小明- 阅读(475) 评论(0) 推荐(0)