Alipay International Mini Program Development PlatformAlipay International Mini Program Development PlatformDOCS
Go to Homepage
Developer's Guide
Developer's Guide
Quick start guide
Development tool (IDE)
Mini Program Studio
IAPMiniProgram SDK
Overview
Android
iOS
Quickstart
(Optional) Implement advanced capabilities
Integrate Native SPIs
Integrate SDK components
Listen for SDK events
Customize extensions
Customize UI-related capacities
Customize user authorization views
Customize the more menu
Customize predefined more menu items
Customize the share capacity
Customize error pages
Customize the splash view
Customize date/time picker
Customize toasts
Customize multi-level selections
Customize options selection
Customize action sheets
Customize settings view
Customize file preview
Customize alert view
Customize close button
Customize title bar favorite/unfavorite button
Customize JSAPIs
Customize SDK environment configurations
Open a mini-program via a promotional QR code
Encrypt local data for enhanced security
General settings
SPIs
APIs
Appendices
Release notes
Flutter
React Native
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
Open Capabilities
Other
Capabilities
Development resources
Framework
Component
Extended Component
Basic Capabilities
Basic Libraries

SelectorQuery Overview

2021-07-06 11:36

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.