随笔分类 -  移动端项目经验

摘要:1.去bootstrap中拷贝适口 2.在项目中 index。html head中复制样式 阅读全文
posted @ 2020-02-19 19:12 容忍君 阅读(219) 评论(0) 推荐(0) 编辑
摘要:getHomeInfo () { this.axios.get('/api/index.json?city=' + this.city) .then(this.getHomeInfoSucc) } 尽量不要在父组件中 过多的操作子组件 最多操作 v-show :数据传递 阅读全文
posted @ 2020-02-16 17:56 容忍君 阅读(802) 评论(0) 推荐(0) 编辑
摘要:1.首先监听滚动条事件 window.addEventListener("scroll", this.handleScroll); 延伸document.documentElement 是什么 document.documentElement document.querySelector("html 阅读全文
posted @ 2020-02-05 20:28 容忍君 阅读(261) 评论(0) 推荐(0) 编辑
摘要:1.stylus 在webstorm中出现红色波浪线 但是不影响浏览器效果,也不报错 <style lang="stylus" scoped > article display flex background lightblue height 0.64rem//此处数字处 .left float l 阅读全文
posted @ 2019-12-13 21:07 容忍君 阅读(225) 评论(0) 推荐(0) 编辑
摘要:全局变量 背景色,单独放在一个变量中 ,其他地方引用就可以 创建文件 varibles.styl 全局的变量 $bgcolor = #0002 其他组件中要使用变量 <style> @import ' styl地址' //样式中引用样式要加@ </style> 自定义目录 <style> @impo 阅读全文
posted @ 2019-12-13 11:20 容忍君 阅读(206) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示