单项选择题
A.3B.5C.2D.以上都不对
以下代码片段的输出结果是()var mingzi = "花花";var cat = {Name:"旺财", p...
以下代码片段的输出结果是()var mingzi = "花花";var cat = {Name:"旺财", prop:{ Name:"小卡", show:function(){ return this.mingzi; } }} console.log(cat.prop.show.call(this));
A.花花B.旺财C.小卡D.报错
function foot(){ this.add = function(x,y){ return x+y; ...
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));弹出结果是()
A.3,-1B.13,-1C.3,1D.13,1
var fun = 1; function fun(a){ console.log(a); } fun(); ...
单项选择题var fun = 1; function fun(a){ console.log(a); } fun(); 以上脚本的运行结果是( )
A.1B.undefinedC.程序报错fun is not a functionD.以上都不对