Chinaunix
标题:
既然有函数提升,那么outer的定义在inner之前,为什么没有错误?
[打印本页]
作者:
cdsfiui
时间:
2016-08-07 11:17
标题:
既然有函数提升,那么outer的定义在inner之前,为什么没有错误?
function outer() {
inner();
}
function inner() {
console.log(arguments.callee.caller);
}
outer();
复制代码
//既然有函数提升,那么outer的定义在inner之前,为什么没有错误?
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2