Snippets

代码片段收集板

获取全局产生的变量edit

日期:

作者: 小胡子哥

;(function(){
  var ifr = document.createElement('iframe');
  document.body.appendChild(ifr);
  var pure = Object.getOwnPropertyNames(ifr.contentWindow);
  document.body.removeChild(ifr);
  var cur = Object.getOwnPropertyNames(window);
  var diff = cur.filter(function(item){
    return pure.indexOf(item) == -1 && item !== '__commandLineAPI';
  });
  console.log(diff, diff.length);
})();
标签:

loading...

这网速真是弱爆了...客官稍等,评论还在加载~