摘要: window.location.hash属性介绍 location是javascript里边管理地址栏的内置对象,比如location.href就管理页面的url,用location.href=url就可... 阅读全文
posted @ 2013-04-16 09:59 CatherineGao 阅读(778) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.regexlab.com/zh/regref.htm引言[原创文章,转载请保留或注明出处:http://www.regexlab.com/zh/regref.htm] 正则表达式(regular expression)就是用一个“字符串”来描述一个特征,然后去验证另一个“字符串”是否符合这个特征。比如 表达式“ab+” 描述的特征是“一个 'a' 和 任意个 'b' ”,那么 'ab', 'abb', 'abbbbbbbbbb' 都符合这个特征。 正则表达式可以用来:(1)验证字符串是否 阅读全文
posted @ 2013-03-28 15:22 CatherineGao 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 彻底领悟javascript中的exec与match方法阅读本文之前,请先看下面一道题:题目17:Read the following javascript code: var someText="web2.0 .net2.0";var pattern=/(\w+)(\d)\.(\d)/g;var outCome_exec=pattern.exec(someText);var outCome_matc=someText.match(pattern);What is outCome_exec[1] and outCome_matc[1]? Choice A: true Cho 阅读全文
posted @ 2013-03-26 15:33 CatherineGao 阅读(145) 评论(0) 推荐(0) 编辑
摘要: functionmoveEnd(obj){obj.focus();varlen=obj.value.length;if(document.selection){varsel=obj.createTextRange();sel.moveStart('character',len);sel.collap... 阅读全文
posted @ 2013-03-26 15:31 CatherineGao 阅读(402) 评论(0) 推荐(0) 编辑
摘要: interpolation 赋值 evaluation 循环 partials 子模板 conditionals 条件 if-else arrays 数组遍历 ... 阅读全文
posted @ 2013-02-27 17:51 CatherineGao 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 谷歌浏览器CSS之A:HOVER 2011-03-01 17:43:43|分类:css|标签:cssbug|字号订阅 在谷歌浏览器中如果在a:hover{}里面加入display:block之后。。效果无法出现,而在其它浏览器中一切正常的解决方法是再增加一个专门针对谷歌... 阅读全文
posted @ 2013-02-27 17:15 CatherineGao 阅读(3988) 评论(0) 推荐(1) 编辑
摘要: 复杂应用的 CSS 性能分析和优化建议 by Z.J.T on 十一月 22, 2012 译自:Profiling CSS for fun and profit. Optimization notes. 我最近正在为一个所谓的单页应用做性能优化,这是一个高度异步化、富交互并且... 阅读全文
posted @ 2013-02-27 17:03 CatherineGao 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 【转】MyISAM InnoDB 区别 【转】MYSQL 常用数据类型 html5离线储存,application cache,manifest使用体验 2012-08-27 17:39... 阅读全文
posted @ 2013-02-26 17:22 CatherineGao 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 前言 SeaJS是一个遵循CommonJS规范的JavaScript模块加载框架,可以实现JavaScript的模块化开发及加载机制。与jQuery等JavaScript框架不同,SeaJS不会扩展封装语言特性,而只是实现JavaScript的模块化及按模块加载。SeaJS的主要目的是令Ja... 阅读全文
posted @ 2013-02-26 17:19 CatherineGao 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 在纠结站点费流量,想高效节省请求以并想二次访问0请求? 身为重度seajs使用者更新基础库js却要一一通知其他开发人员重新打包发布,想让seajs支持独立的版本管理和存储管理? 如果有任何以上一点,那这篇文章或许对你将有所帮助 下文... 阅读全文
posted @ 2013-02-26 17:14 CatherineGao 阅读(533) 评论(0) 推荐(0) 编辑