var Higher = {
hello: function(){
console.log('Hello from Higher');
}
Lower: {
hi: function(){
//how to call the 'hello()' method from the Higher namespace?
//without hardcoding it, as 'Higher.hello()'
console.log('Hi from Lower');
}
}
}
如何在没有硬编码的情况下从更高级别的命名空间调用方法?请参阅我想在另一个较低名称空间中调用更高级别名称空间的方法的注释。