Alipay International Mini Program Development PlatformAlipay International Mini Program Development PlatformDOCS
Go to Homepage
Developer's Guide
Overview
Quick start guide
Development tool
Mini Program Studio
Guide to Goldfish
About App Container
API references
OpenAPIs
JSAPI
Overview
JSAPI reference
JS bridge guide for cross-app launch
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
Device
Sharing
Collection
Update
web-view
Alipay Connect
my.getSiteInfo
Open Capabilities
Capabilities
Development resources
Framework
Component
Extended Component
Basic Capabilities
Basic libraries

SelectorQuery Overview

2021-06-16 04:13

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.