> prototypeで宣言しただけのプロパティはhasOwnProperty()だとfalseになってしまうようです。

pipeheadpipehead のブックマーク 2014/02/12 16:41

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

【メモ】クラス作る際の関数式と関数文での違い - Qiita

    // 関数式でのクラス宣言 var Hoge = function(){}; Hoge.prototype = { foo: 'foo', getFoo: function(){ return this.foo; } }; // 関数文でのクラス宣言 function Piyo(){ this.bar = 'bar'; this.getBar = fu...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう