摘要: parseURL// This function creates a new anchor element and uses location// properties (inherent) to get the desired URL data. Some String// operations ... 阅读全文
posted @ 2015-02-26 17:43 lanyan 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/Wayou/p/things_you_dont_know_about_frontend.html前端已经被玩儿坏了!像console.log()可以向控制台输出图片等炫酷的玩意已经不是什么新闻了,像用||操作符给变量赋默认值也是人尽皆知的旧闻了,今... 阅读全文
posted @ 2015-02-26 17:41 lanyan 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 出自:http://lab.abhinayrathore.com/jquery-standards/加载jQuery1.坚持使用CDN来加载jQuery,这种别人服务器免费帮你托管文件的便宜干嘛不占呢。点击查看使用CDN的好处,点此查看一些主流的jQuery CDN地址。2.安全起见,最好还是提供一... 阅读全文
posted @ 2015-02-26 17:06 lanyan 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Anonymous functions bound everywhere are a pain.They're difficult to debug, maintain, test, or reuse.Instead, use an object literal to organize and na... 阅读全文
posted @ 2015-02-26 16:41 lanyan 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 与CSS动画结合当与CSSanimation结合,可以得到更加有创意的效果,比如这个来自codepen的示例CSShtml { color: red; animation: color 30s linear infinite;}@keyframes color { 33.3% { color:... 阅读全文
posted @ 2015-02-26 13:35 lanyan 阅读(150) 评论(0) 推荐(0) 编辑