摘要: 感觉正则的东西太零散了 总是记不住,写下这篇随笔,遇到关于正则的就记下来。 /^hell/ 匹配的格式有 hell hello helluioo 等, 其中^为定位符 /ar$/ 匹配的格式有 car bar ar hsuhar 等,其中$为定位符 [^] 为否定符 /[^\d]/ 匹配所有0-9以 阅读全文
posted @ 2016-09-06 16:58 co喵儿 阅读(182) 评论(0) 推荐(0) 编辑
摘要: var cache= {} ; //声明存放缓存的对象 cache.city = userCity ; //存储城市列表 cache.community = userCommunity ; //存储小区列表 cache.cityId = cityId; //城市id cache.communityI 阅读全文
posted @ 2016-08-31 16:14 co喵儿 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 介绍一下编码解码函数对 1. escape /unescape 主要用于汉字编码,返回字符的unicode编码值, 对“+”不能编码 2. encodeURI / decodeURI 用于对url进行编码,但对特殊字符如+ ? # @ & 等不能编码 3, encodeURIComponent /d 阅读全文
posted @ 2016-08-31 16:07 co喵儿 阅读(3111) 评论(0) 推荐(0) 编辑
摘要: 运用了bootstrap 框架 ,在栅格系统中占列数小于12,且需要居中显示并固定悬浮在最下方的div(设为divnei) ,可以在其外层嵌套一个div(设为divwai) ,可以设置divwai 为:{width:100%; position:fixed; left:0; bottom:0;tex... 阅读全文
posted @ 2015-11-17 14:04 co喵儿 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 第一步:找到httpd.conf 文件找到这一句:#Include conf/extra/httpd-vhosts.conf ,去掉前面的#,开启虚拟主机功能。第二步:在extra 下找到httpd-vhosts.conf 按照如下方式配置 DocumentRoot"c:... 阅读全文
posted @ 2015-07-31 12:31 co喵儿 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 1.播放器ckplayer 下载地址:http://www.ckplayer.com/bbs/forum.php?mod=viewthread&tid=10864弹幕插件barrage下载地址:http://www.ckplayer.com/bbs/forum.php?mod=viewthread&... 阅读全文
posted @ 2015-07-09 15:43 co喵儿 阅读(2747) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-07-08 20:11 co喵儿 阅读(183) 评论(0) 推荐(0) 编辑
摘要: css3的动画,执行完毕后默认回到初始状态,要想停留在动画的末状态;只需设置一个属性像这样 {animation:an 1s forwards;} 就可以了 阅读全文
posted @ 2015-06-09 12:52 co喵儿 阅读(131) 评论(0) 推荐(0) 编辑