2009-02-03から1日間の記事一覧
jQueryを勉強中。ソースコードを読んでいるけど、読めない。 /*! * jQuery JavaScript Library v1.3.1 * http://jquery.com/ * * Copyright (c) 2009 John Resig * Dual licensed under the MIT and GPL licenses. * http://docs.jquery.com/License * * Dat…
基礎を学ぶために、returnを持つコンストラクタの挙動を調べた。 下記コードだと、new Hoge()で、nameプロパティを持つオブジェクトが返され、temp1変数に格納される。 var Hoge = function (){ this.name = 'hoge'; }; var temp1 = new Hoge(); alert(temp1…