摘要: 阅读全文
posted @ 2017-06-12 16:36 pearl007 阅读(8896) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-05-22 15:49 pearl007 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 使用滚动时候,新版google浏览器,会弹出如下的警告。 解决方法,可以加上* { touch-action: none; } 这句样式去掉。 其原因:https://developers.google.com/web/updates/2017/01/scrolling-intervention(是 阅读全文
posted @ 2017-03-20 15:05 pearl007 阅读(11303) 评论(0) 推荐(0) 编辑
摘要: 效果: 阅读全文
posted @ 2017-02-24 17:36 pearl007 阅读(3373) 评论(0) 推荐(0) 编辑
摘要: helpCenter.css 效果 阅读全文
posted @ 2017-02-20 09:31 pearl007 阅读(1028) 评论(0) 推荐(0) 编辑
摘要: 1,文件内容 //为item添加不存在的属性,需要使用vue提供的Vue.set( object, key, value )方法。 看详解:https://cn.vuejs.org/v2/api/#Vue-set <template> <div> <ul> <li v-for="(item,$ind 阅读全文
posted @ 2017-01-19 17:27 pearl007 阅读(5976) 评论(11) 推荐(0) 编辑
摘要: 1,文件内容 使用v-for遍历数据 @click="selectSort(item)"添加点击事件,并把每个obj=item传入 v-show="item.show",在点击事件中,实现点击显示或隐藏 :class="{'active':item.show true}" 动态添加class,判断当 阅读全文
posted @ 2017-01-17 11:17 pearl007 阅读(36541) 评论(0) 推荐(0) 编辑
摘要: 1,使用save会在package.json中自动添加。 npm install node-sass --save npm install sass-loader --save 2,通常使用npm安装会出现以下报错,安装失败。(网路问题) 3,可以通过淘宝的npm镜像安装node-sass,解决以上 阅读全文
posted @ 2017-01-16 10:21 pearl007 阅读(11850) 评论(0) 推荐(1) 编辑
摘要: 1,写一个简单的headcomp组件如下: <template> <div class="box"> <transition name="move"> <button @click = "decrease" v-show="home.count>0" class="decrease">我是减法</b 阅读全文
posted @ 2017-01-11 09:38 pearl007 阅读(5159) 评论(0) 推荐(0) 编辑
摘要: 1,html <p>我有很多文字 我有很多文字 我有很多文字 我有很多文字 我有很多文字 我有很多文字 </p> 2,css display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; //两行文字省略 text-overflow: 阅读全文
posted @ 2017-01-11 09:10 pearl007 阅读(242) 评论(0) 推荐(0) 编辑