function fun(){
console.log('foo'); return { fun: function(){ fun();
}
};
}fun().fun(); // 'foo','foo'fun().fun().fun(); // 错误:Cannot read property 'fun' of undefined为什么会是这样的结果,JS菜鸟求解,花了好长时间都没弄明白,请赐教……
温温酱
肥皂起泡泡
随时随地看视频慕课网APP
相关分类