DOCS
Go to Homepage
Developer's Guide
Developer's Guide
Quick start guide
Development tool (IDE)
Mini Program Studio
About App Container
API references
OpenAPIs
JSAPI
Overview
JSAPI reference
JS bridge guide for cross-app launch
Open Capabilities
Basic
In-App Event
UI
NavigationBar
TabBar
Route
Feedback
Pulldown
Contact
Choose Date
Animation
Canvas
Keyboard
Scroll
SelectorQuery
my.createSelectorQuery
SelectorQuery Object
SelectorQuery Overview
SelectorQuery.boundingClientRect
SelectorQuery.exec
SelectorQuery.scrollOffset
SelectorQuery.select
SelectorQuery.selectAll
SelectorQuery.selectViewport
Multiple Level Select
Set Background
Set Page Pulldown
Media
Storage
File
Location
Map
Network
my.request
my.uploadFile
my.downloadFile
my.connectSocket
my.onSocketOpen
my.offSocketOpen
my.onSocketError
my.offSocketError
my.sendSocketMessage
my.onSocketMessage
my.offSocketMessage
my.closeSocket
my.onSocketClose
my.offSocketClose
Device
Sharing
Update
web-view
Alipay Connect
Capabilities
Development resources
Framework
Component
Extended Component

SelectorQuery Overview

2023-06-28 02:52

The class of selector query object.

Functions

NameDescription
SelectorQuery.boundingClientRectPut the location of current selected node into the query result.
SelectorQuery.execPut the query result into the Callback.
SelectorQuery.scrollOffsetPut the scroll of current selected node into the query result.
SelectorQuery.selectSelect the first matched node.
SelectorQuery.selectAllSelect all the matched nodes.
SelectorQuery.selectViewportThe instance of select window.