http://24ways.org/2011/your-jquery-now-with-less-suck
Author: paul
jQuery bind, live 和 delegate的区别的好文
看这里:http://www.alfajango.com/blog/the-difference-between-jquerys-bind-live-and-delegate/
修改Chrome Google 搜索引擎为默认英文
坦率的讲,Google 中文的技术资源实在太稀缺了。我之前喜欢一打开Google就直接访问: http://www.google.com/ncr,在实现在英文的页面中搜索。 目前Chrome的地址栏是内嵌了Google 搜索的,不过在大陆,默认的是 google.com.hk 来搜索,很不好用,找不到东西 以下方法可以设置 Chrome 的默认搜索引擎成为 Google English: 右键点击地址栏,选择 编辑搜索引擎 在默认选择选项中, 选中默认的Google搜索引擎的值 —— 很长的哦 —— 然后拷贝下来 —— 按Ctrl + C 在其他搜索引擎中的最下面的三个框中输入:GE, google.com,…
mouseleave 与 mouseout的区别 — mouseenter 与 mouseover的区别
在 jQuery mouseleave 的这个页面提到了 mouseleave 与 mouseout的区别 http://api.jquery.com/mouseleave/ 其主要的区别是事件冒泡的方式。mouseleave是不冒泡的,而mouseout则相反。 举例: <ul style=”padding: 50px”><li></li><li></li></ul> 现在给上面的 HTML 结构绑定事件: $(‘ul’).mouseleave(function(){ window.console && console.log(this); }) 你的原计划是当鼠标离开ul之后,控制台打出一些东西…
共享新浪微博好友组给你的其他关注者的代码
// jQuerify via fireQuery plugin — firebug plugin — firstly // 你需要使用firebug,并安装fireQuery插件,jquerify之后,再运行此段代码, // this piece of code will help you to share all of your…
dom 新方法 getElementsByClassName 和 querySelectorAll
参考地址: http://www.quirksmode.org/dom/w3c_core.html 新浏览器提供越来越多的Dom 方法,其中两个灰常有用的,也是众JS库竞相提供的,就是 getElementsByClassName 和 querySelectorAll. getElementsByClassName 顾名思义,你懂的。 querySelectorAll 则是提供了使用CSS选择器来查找DOM节点。如 document.querySelectorAll(‘.testClass + p’) 浏览器的支持情况如链接所示: http://www.quirksmode.org/dom/w3c_core.html
[未完成]VIM 替换中使用函数表达式
要把 <li><a href=”#cimtabs-0″>Tab #1 nice day</a></li> <li><a href=”#cimtabs-0″>Tab #1 nice day</a></li> <li><a href=”#cimtabs-0″>Tab #1 nice day</a></li> <li><a href=”#cimtabs-0″>Tab #1 nice day</a></li> <li><a href=”#cimtabs-0″>Tab #1 nice…
编辑Python时, 出现: no acceptable C compiler found in $PATH 的解决方法
准备学习Python. 2011年11月17日19时05分39秒 如果你在Ubuntu下编辑Python时, 出现了: configure: error: in `/home/paul/python/Python-2.7.2′: configure: error: no acceptable C compiler found in $PATH 则在终端运行这个命令即可解决: sudo aptitude install build-essential
批量删除新浪微博帖子代码 — batch delete posts script for weibo.com
// batch delete posts script for weibo.com // 批量删除新浪微博帖子代码 // // By Paul Lan, 基督教北京守望教会弟兄小方 // Last Modified: 2011年11月13日00时51分03秒 // // usage: // 1. you…
[待翻译] 使用PubSub订阅发布机制创建低耦合度Javascript函数
Loosely Coupled JavaScript Using PubSub http://blog.bobcravens.com/2011/01/loosely-coupled-javascript-using-pubsub/
ECMA Script 不只是包括javascript哦
之前一直以为javascript的别名是ECMAScript,现在知道这是误解。ECMA Script 包括 Javascript, Jscript, ActionScript 和其他一些相关的语言。 看这里:http://en.wikipedia.org/wiki/ECMAScript 更多链接:ECMA-262, ECMA-290, ECMA-327, ECMA-357
还是自己开博客
之前一直在 http://blog.csdn.net/lanshunfang 和 http://blog.sina.com.cn/jesuslovespaul 上面写东西,现在还是决定使用wordpress, 这样数据库就能备份了。 偶的新浪微博:http://weibo.com/lanshunfang 偶的G+: https://plus.google.com/115745573530887029853/posts