js
1 function test() { 2 console.dir("test"); 3 } 4 5 test.prototype.say = function() { 6 console.dir("say"); 7 } 8 9 var test1 = new test(); 10 test1.say(); 11
これだとコンソール出力が
test
say
になると思うのですが、testを表示させない為にはどのような書き方ができますか?
ブラウザはIE11です。
回答1件
あなたの回答
tips
プレビュー