TNGD Mini Program Development PlatformTNGD Mini Program Development PlatformDOCS
Go to Homepage
Developing Mini Program
Working with Mini Programs
Reference
Framework
Component
Extended Component
JSAPI
Overview
JSAPI Reference
UI
NavigationBar
TabBar
Route
Feedback
Pulldown
Contact
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
Device
Update
web-view
Open Capabilities
Open APIs
Partner Settlement Process
Deeplinking and Push Notification
Mini Program Project Planning

SelectorQuery Overview

2021-02-26 08:05

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.