From 567a8766262872b2c60d6cb16ce75b8f014355db Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Mon, 21 Oct 2019 21:37:02 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=A2=9E=E5=8A=A0nodesRef.node?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/ui/nodes-info.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/api/ui/nodes-info.md b/docs/api/ui/nodes-info.md index 4efedaac9..64f963bf3 100644 --- a/docs/api/ui/nodes-info.md +++ b/docs/api/ui/nodes-info.md @@ -118,7 +118,26 @@ query.select('#id').boundingClientRect(data => { | --- | --- | --- | | context | Object | 节点对应的 Context 对象 | +### nodesRef.node(callback) + +获取 `Node` 节点实例。目前支持 `Canvas` 的获取。 + +**平台差异说明** + +|App|H5|微信小程序|支付宝小程序|百度小程序|头条小程序|QQ小程序| +|:-:|:-:|:-:|:-:|:-:|:-:|:-:| +|√|x|√|x|x|x|√| + +**callback 返回参数** + +| 属性 | 类型 | 说明 | +| --- | --- | --- | +| node | Object | 节点对应的 Node 实例 | + +**注意** +- 目前仅能用于`canvas` +- `canvas`需设置`type="webgl"`才能正常使用 ### 代码示例 -- GitLab