【发布时间】:2016-02-17 03:00:58
【问题描述】:
var namespace = {
test: function() {
//sample 1
function nest(param) {
console.log('a '+ param);
}
//sample 2
this.nest = function(param) {
console.log('b '+ param);
}
}
}
谁能解释如何调用和访问嵌套函数?提前致谢!
【问题讨论】:
标签: function namespaces