上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 54 下一页
摘要: 本地存储特性 数据存储在用户浏览器中 设置、读取方便、甚至页面刷新不丢失数据 容量较大,sessionStorage约5M、localStorage约20M 只能存储字符串,可以将对象JSON.stringify()编码后存储 window.sessionStorage 生命周期为关闭浏览器窗口 在 阅读全文
posted @ 2020-06-11 21:40 鼓舞飞扬 阅读(223) 评论(0) 推荐(0)
摘要: (1):style使用 <div class="score" :style="{ color: colorComputed(item.status) }">{{item.score}}</div> computed: { colorComputed() { return (status) => { 阅读全文
posted @ 2020-06-10 10:07 鼓舞飞扬 阅读(398) 评论(0) 推荐(0)
摘要: https://www.toutiao.com/i6805180677403705870/?tt_from=weixin_moments&utm_campaign=client_share&wxshare_count=2&from=timeline&timestamp=1591498472&app= 阅读全文
posted @ 2020-06-09 14:51 鼓舞飞扬 阅读(258) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-06-09 13:52 鼓舞飞扬 阅读(60) 评论(0) 推荐(0)
摘要: MVVM分为Model、View、ViewModel三者 Model:代表数据模型,数据和业务逻辑都是在Model层定义 View:代表UI视图,负责对数据的展示 ViewModel: 负责监听Model中数据的改变并监控视图的更新,处理用户交互操作。 Model和view并无直接关联,而是通过Vi 阅读全文
posted @ 2020-06-09 12:28 鼓舞飞扬 阅读(212) 评论(0) 推荐(0)
摘要: 移动端推荐: vant、cube-ui 有赞vant: https://youzan.github.io/vant/#/zh-CN/ 滴滴cube-ui: https://didi.github.io/cube-ui/#/zh-CN/docs/introduction 阅读全文
posted @ 2020-06-08 16:41 鼓舞飞扬 阅读(165) 评论(0) 推荐(0)
摘要: 今天实现一个功能,点击首页,头部按钮,切换大屏功能。不同的屏,页头宽度不一样,小屏1280px, 大屏百分百屏幕,左右留点120px的padding值。 思路:点击按钮,切换不同的子路由,顶部通过一个值,控制头部样式。刷新页面,头部要和路由相对应。关闭页面。默认进首页。这时,我想到用sessionS 阅读全文
posted @ 2020-06-08 12:07 鼓舞飞扬 阅读(3088) 评论(0) 推荐(0)
摘要: localStorage的生命周期是永久性的。localStorage存储的数据,即使关闭浏览器,也不会让数据消失,除非主动的去删除数据。如果 想设置失效时间,需自行封装。 sessionStorage 的生命周期是在浏览器关闭前。 特性: 关闭浏览器sessionStorage 失效; 页面刷新不 阅读全文
posted @ 2020-06-05 16:55 鼓舞飞扬 阅读(208) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/qdhxhz/p/8468913.html 阅读全文
posted @ 2020-06-05 11:50 鼓舞飞扬 阅读(114) 评论(0) 推荐(0)
摘要: echarts折线图美化(颜色渐变、背景透明、隐藏坐标轴) https://blog.csdn.net/Changeable0127/article/details/81333559?utm_medium=distribute.pc_relevant.none-task-blog-BlogComme 阅读全文
posted @ 2020-06-05 10:42 鼓舞飞扬 阅读(6142) 评论(0) 推荐(0)
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 54 下一页