单项选择题
A.3
B.5
C.2
D.以上都不对
单项选择题 以下代码片段的输出结果是()var mingzi = "花花";var cat = {Name:"旺财", prop:{ Name:"小卡", show:function(){ return this.mingzi; } }} console.log(cat.prop.show.call(this));
单项选择题 function foot(){ this.add = function(x,y){ return x+y; }}foot.prototype.add = function(x,y){ return x+y+10;}Object.prototype.substract = function(x,y){ return x-y;}var f1 = new foot();alert(f1.add(1,2));alert(f1.substract(1,2));弹出结果是()
单项选择题 var fun = 1; function fun(a){ console.log(a); } fun(); 以上脚本的运行结果是( )