2009年4月10日金曜日

JavaScriptのthis

var f = function(){
// thisはwindow
}

var f = {};
f.e = function(){
//thisはf
}

呼び出しもとがthisなのですね。

0 件のコメント:

コメントを投稿