摘要: Html部分 JS部分 <!--动态数据--> <!--静态数据--> <!--<div class="grid-item"><img src="img/01.jpg" alt=""/></div>--> <!--<div class="grid-item"><img src="img/02.jpg 阅读全文
posted @ 2018-03-22 09:44 Vonson 阅读(491) 评论(0) 推荐(0) 编辑
摘要: <body ng-app="myApp" class="body"><div ng-controller="AccordionDemoCtrl"> <div ng-repeat="info in panelShow"> <h2 ng-click="openCon($index)">{{info.ti 阅读全文
posted @ 2017-11-07 22:21 Vonson 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Html部分: Js部分: 阅读全文
posted @ 2017-10-14 10:37 Vonson 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 身份证:/(^\d{15}$)|(^\d{17}([0-9]|X)$)/ 手机号:/^[1][3-8]\d{9}$|^([6|9])\d{7}$|^[0][9]\d{8}$|^[6]([8|6])\d{5}$/ js字符常用 (^\s*) //表示从第一个位置开始匹配至少一个空格或控制符(\s*$) 阅读全文
posted @ 2017-10-11 15:54 Vonson 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 相关建议: ①不要用全局reset; ②指定相应的简写方式; ③理清页面结构,尽量统一使用; /** 清除内外边距 **/ body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */ dl, dt, 阅读全文
posted @ 2017-09-30 11:33 Vonson 阅读(259) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title></head><style> .tabcon{display: none} .tabcon.active{ display: block; } .t 阅读全文
posted @ 2017-09-29 11:32 Vonson 阅读(1827) 评论(0) 推荐(0) 编辑
摘要: 一、自定义select样式: 阅读全文
posted @ 2017-09-28 23:06 Vonson 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 1、去重 清除数组中重复出现的元素: var arr1 = [ 1,3,3,4,4 , 4,"aba","aba" ]; //数组字面量的形式创建数组。 var arr2 = [ ]; for ( var i=0; i<arr1.length; i++){ if(arr2.indexOf(arr1[ 阅读全文
posted @ 2017-09-17 11:52 Vonson 阅读(1225) 评论(0) 推荐(0) 编辑
摘要: 原文:http://zhanfeng.blog.51cto.com/6109904/1017901 通过Tab切换我们学到:函数,数组,for循环,if语句,this关键字。其中this关键字是最重要的,this关键字第一层含义就是指向当前对象。下面我就总结一下this关键字: 当点击第一和第三个l 阅读全文
posted @ 2016-12-06 14:57 Vonson 阅读(880) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.jianshu.com/p/d365fb356e2c 阅读全文
posted @ 2016-10-12 16:27 Vonson 阅读(1062) 评论(0) 推荐(0) 编辑