单项选择题
function run() { this.type ='宝马';}function Mc() {run.call(this)};var c = new Mc();console.log(c.type)打印结果是?()
A.程序报错B.宝马C.nullD.undefined
单项选择题 对于var o = {n:'小明'} ,可以访问n属性的是?()
单项选择题 var Apple = function(){ this.count = 1}Apple.prototype.do = function(){ return this.count++;}var a = new Apple();console.log(a.do())程序运行结果是()
单项选择题 var Add = function(){}Add.prototype.do = function(){ alert("Add+do");}以下选项中,可以alert出来Add+do的是()