var getWindow = function(obj) {
        var winProp = !+"\v1" ? 'parentWindow' : 'defaultView';
        return obj[winProp] || (obj.ownerDocument && obj.ownerDocument[winProp]) || obj;
      }
      var isWindow = function(obj){
        return obj.document && obj.document.nodeType === 9 ||
          obj.contentDocument && obj.contentDocument.nodeType === 9
      }

相关文章:

  • 2022-12-23
  • 2021-09-06
  • 2022-01-12
  • 2022-12-23
  • 2021-11-06
  • 2022-03-06
  • 2021-04-30
  • 2022-12-23
猜你喜欢
  • 2021-11-13
  • 2022-12-23
  • 2021-12-21
  • 2022-01-22
相关资源
相似解决方案