# SelectorQuery wx.createSelectorQuery()

Start from base library version 1.4.0. Please remaining backward compatible.

with Promise style call: Not supported

Mini Program plugin: Support, need to Mini Program base library version no less than 1.9.6

Returns a SelectorQuery Object instance. In a custom component or a page that contains it, you should use the this.createSelectorQuery() To replace.

# Return value

# SelectorQuery

# sample code

const query = wx.createSelectorQuery()
  res[0].top       // #Upper boundary coordinates of the -id node
  res[1].scrollTop // Vertical scrolling position of display area