Blame view

天文台pc/tianwentai-ui/node_modules/dom-helpers/cjs/querySelectorAll.js 393 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  "use strict";
  
  exports.__esModule = true;
  exports.default = qsa;
  var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
  /**
   * Runs `querySelectorAll` on a given element.
   * 
   * @param element the element
   * @param selector the selector
   */
  
  function qsa(element, selector) {
    return toArray(element.querySelectorAll(selector));
  }
  
  module.exports = exports["default"];