摘要: HTML提供了5种空格实体(space entity),它们拥有不同的宽度,非断行空格( )是常规空格的宽度,可运行于所有主流浏览器。其他几种空格(       ‌‍)在不同浏览器中宽度各异。   它叫不换行空格,全称No-Br 阅读全文
posted @ 2018-03-23 10:47 小曦曦 阅读(116) 评论(0) 推荐(0) 编辑
摘要: next 只能調用一次,這邊可以用 Promise.all 解決,等待兩個異步操作都返回結果後再 next:beforeRouteEnter (to, from, next) { // Promise.all 會等到數組內的 Promise 都 resolve 後才會繼續跑(then) Promis 阅读全文
posted @ 2018-03-02 14:20 小曦曦 阅读(12081) 评论(0) 推荐(0) 编辑
摘要: this.loading=true; setTimeout(()=>{ this.getTabList(); },500) this.loading=true; setTimeout(()=>{ this.getTabList(); },500) 里面的this等于外面的this 或者用es6也是可 阅读全文
posted @ 2018-02-11 12:25 小曦曦 阅读(96) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/daowangzhizhu-pt/p/6858925.html "Content-Type": "application/json"// 顺便一提 "Content-Type": "application/x-www-form-urlencoded" 阅读全文
posted @ 2018-02-09 16:37 小曦曦 阅读(1210) 评论(0) 推荐(0) 编辑
摘要: 注意类型: <link rel="stylesheet" href="./css/server.css" /> less是有stylesheet/less <!-- <link rel="stylesheet/less" type="text/css" href="./css/skin.less" 阅读全文
posted @ 2018-02-08 12:11 小曦曦 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1.react的特点就是轻,它不是mvc框架,只是里面的v,mvc框架可能在某些场景下不适合,所以react轻。 2.react机制,虚拟DOM(Virtual DOM)机制:对于每一个组件,React会在内存中构建一个相对应的DOM树。 3.Virtual DOM和数据单项绑定就使得react渲染 阅读全文
posted @ 2018-02-08 10:58 小曦曦 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-02-07 11:57 小曦曦 阅读(84) 评论(0) 推荐(0) 编辑
摘要: .block-shadow:hover { -webkit-box-shadow: 0 10px 30px -5px rgba(10,16,34,.2)!important; box-shadow: 0 10px 30px -5px rgba(10,16,34,.2)!important; .blo 阅读全文
posted @ 2018-02-05 16:09 小曦曦 阅读(847) 评论(0) 推荐(0) 编辑
摘要: 常用背景定位,如果有点击方法的话。margin:负数就行 background: url('../../../assets/images/common_arrow_down.png') no-repeat right 12px center; 背景模糊 ._26AkASahcNlbRkP0AqxNZ 阅读全文
posted @ 2018-02-02 16:43 小曦曦 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 加判断,错在第一次没有oldVal,所以不能加这个oldVal!=val,多加一次判断 level:{ handler: function (val, oldVal) { if(oldVal!=val&&this.haveResh){ this.routerTo(this.level.place,n 阅读全文
posted @ 2018-02-02 14:18 小曦曦 阅读(216) 评论(0) 推荐(0) 编辑