(css, contextNode = document)
| 2343 | |
| 2344 | // 获取元素(CSS/Xpath)来自:https://github.com/machsix/Super-preloader |
| 2345 | function getCSS(css, contextNode = document) { |
| 2346 | return contextNode.querySelector(css); |
| 2347 | } |
| 2348 | function getAllCSS(css, contextNode = document) { |
| 2349 | return [].slice.call(contextNode.querySelectorAll(css)); |
| 2350 | } |
no outgoing calls
no test coverage detected