<script type="text/javascript"> ??function f(){ ???console.log(this)}var obj = {}f(); ???//指向windowf.apply(obj) ?//指向obj</script>
js ?this指向
原文地址:http://www.cnblogs.com/dujunfeng/p/8011830.html
<script type="text/javascript"> ??function f(){ ???console.log(this)}var obj = {}f(); ???//指向windowf.apply(obj) ?//指向obj</script>
js ?this指向
原文地址:http://www.cnblogs.com/dujunfeng/p/8011830.html