2008-03-07から1日間の記事一覧

typeof this == "object"

ちょっとハマってしまった。 String.prototype.f = function () { alert(typeof this); }; alert(typeof "test"); //=> "string" "test".f(); //=> object ぬーん。