<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
    function isWindow( obj ) {
        /* jshint eqeqeq: false */
        return obj != null && obj == obj.window;
    };
    function test(){
        console.log(this);
        console.log(this.window);
        console.log(isWindow(this));
    }
    test();
</script> 
</body>
</html>

 

相关文章:

  • 2021-10-11
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
猜你喜欢
  • 2021-07-30
  • 2022-12-23
  • 2021-08-13
  • 2021-11-26
  • 2021-10-20
相关资源
相似解决方案