一

{"type":"编程笔记"}


  • Home

  • Archives
  • Search

keywords of this in javascript methods

Posted on 2008-01-21   |   In javascript

javascript的闭包函数(如将函数做为另一个函数/方法的参数或者是返回结果为函数)中的this会因为闭包函数使用环境不同而变化。

prototype.js里加了一个bind方法可以把this重新绑回到原对象上(如fx方法所示),但如果返回的是闭包函数,则其中的this会指向新的object(如rf2方法所示指向了window)。

Read more »

arguments.callee写递归匿名函数

Posted on 2008-01-21   |   In javascript

Early versions of javascript did not allow named function expressions, and because of that we could not make a recursive function expression:

Read more »

usage of cut or awk with xargs

Posted on 2008-01-20   |   In linux

用这个命令alias用以杀掉ruby rails server进程。

Read more »

利用 ruby 进行 udp 通信

Posted on 2007-12-25   |   In ruby

收信端

Read more »

install vim doc

Posted on 2007-12-24   |   In vim

在Vim中运行:

Read more »
1…848586…99
yuweijun

yuweijun

492 posts
12 categories
RSS
GitHub Twitter
© 2021 yuweijun
Powered by Hexo
Theme - NexT.Mist.KISS