MCPcopy Index your code
hub / github.com/Tencent/kbone / querySelector

Method querySelector

packages/miniprogram-render/src/document.js:376–380  ·  view source on GitHub ↗
(selector)

Source from the content-addressed store, hash-verified

374 }
375
376 querySelector(selector) {
377 if (typeof selector !== 'string') return
378
379 return this.$_tree.query(selector, this.documentElement)[0] || null
380 }
381
382 querySelectorAll(selector) {
383 if (typeof selector !== 'string') return []

Callers 15

document.test.jsFile · 0.45
event.test.jsFile · 0.45
node.test.jsFile · 0.45
element.test.jsFile · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45

Calls 1

queryMethod · 0.80

Tested by

no test coverage detected