摘要: 1. v-for: <div v-for="(item,index) in todolist" v-bind:key="item.id"> </div> 2. v-if..... v-else : <div v-if="flag" v-bind:key="item.id"> </div> <div 阅读全文
posted @ 2017-11-14 16:47 tangchangcai 阅读(7149) 评论(0) 推荐(0) 编辑
摘要: 第一步: 引入:<script src="qrcode.js"></script> 第二步: <div id="qrcode"></div> 第三步: // 1.简单使用方式 :new QRCode(document.getElementById('qrcode'), 'http://www.bai 阅读全文
posted @ 2017-11-13 15:40 tangchangcai 阅读(6556) 评论(1) 推荐(0) 编辑
摘要: 原文链接:http://caibaojian.com/js-splice-element.html 2:delete · delete删除掉数组中的元素后,会把该下标出的值置为undefined,数组的长度不会变 阅读全文
posted @ 2017-11-13 10:38 tangchangcai 阅读(394) 评论(0) 推荐(0) 编辑
摘要: array.splice(index包含,要删除的个数:从index算起,index位置上要添加的item) >返回新的数组 indexof: 1.string var arr = ['orange','2016','2016']; arr.indexOf(‘orange') 输出 0 因为 ‘or 阅读全文
posted @ 2017-11-13 10:30 tangchangcai 阅读(368) 评论(0) 推荐(0) 编辑
摘要: explain: 阅读全文
posted @ 2017-11-11 17:56 tangchangcai 阅读(439) 评论(0) 推荐(0) 编辑
摘要: method1: '1aaa2bb3'.match(/\d/g) //return : [1,2,3] method2: '1aaa2bb3 hello world'.match('world ') //return null,是因为后面有个空格所以返回null '1aaa2bb3 hello wo 阅读全文
posted @ 2017-11-11 11:14 tangchangcai 阅读(5079) 评论(0) 推荐(0) 编辑
摘要: <a href="javascript:history.go(-1)">返回上一页</a> <a href="javascript:location.reload()">刷新当前页面</a> <a href="javascript:" onclick="history.go(-2); ">返回前两页 阅读全文
posted @ 2017-11-09 20:38 tangchangcai 阅读(13564) 评论(0) 推荐(0) 编辑
摘要: chrome: opacity:0.9;//不透明度0.9; filter:alpha(opacity=90); 阅读全文
posted @ 2017-11-09 20:02 tangchangcai 阅读(270) 评论(0) 推荐(1) 编辑
摘要: var o = {}; o.1ab = 1;//错, o['1ab']=1;//正确 阅读全文
posted @ 2017-11-09 19:51 tangchangcai 阅读(2083) 评论(0) 推荐(0) 编辑
摘要: CSS3 Filter的十种特效 作者:大漠 日期:2012-01-09 点击:151412 filter 编辑推荐: 掘金是一个高质量的技术社区,从 CSS 到 Vue.js,性能优化到开源类库,让你不错过前端开发的每一个技术干货。 点击链接查看最新前端内容,或到各大应用市场搜索「 掘金」下载AP 阅读全文
posted @ 2017-11-09 19:48 tangchangcai 阅读(231) 评论(0) 推荐(0) 编辑