根据以下代码打印输出,我们是:陈翔六点半
var Ldb = function(i) {
this.get = function(success, error) {
return [function () {
var json = {
name: '陈翔六点半'
}
if(i > 1) {
if(typeof success == "function") {
success(json)
}
} else {
error('错误!');
}
},function () {
return ['我们是:'];
}]
}
}
回答
var d = function(json){
console.log(str + json.name)
}
var db = new Ldb(2)
b = db.get(d)
console.log(typeof console.log)
var str = b[1]()[0]
b[0]()
网友评论