From a731b5720a8f1fef4fc4739c4c77e9ea99e106e2 Mon Sep 17 00:00:00 2001 From: linju Date: Mon, 24 May 2021 17:27:27 +0800 Subject: [PATCH] =?UTF-8?q?update=20docs/api/system/network.md.=20?= =?UTF-8?q?=E8=A1=A5=E5=85=85uni.offNetworkStatusChange=E7=9A=84=E7=94=A8?= =?UTF-8?q?=E6=B3=95=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/system/network.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/api/system/network.md b/docs/api/system/network.md index e56b8298d..b9b664e08 100644 --- a/docs/api/system/network.md +++ b/docs/api/system/network.md @@ -66,4 +66,13 @@ uni.onNetworkStatusChange(function (res) { |HBuilderX 3.0.1+|HBuilderX 3.0.1+|基础库 2.9.3+|x|x|x|x| **Tips** -- `CALLBACK`为调用`uni.onNetworkStatusChange`时传入的`CALLBACK` +- `CALLBACK`必须为调用`uni.onNetworkStatusChange`时传入的`CALLBACK` + +例如: +``` +var CALLBACK = function(res) { + // ...这里写你的业务逻辑 +} +uni.offNetworkStatusChange(CALLBACK) +uni.onNetworkStatusChange(CALLBACK); +``` \ No newline at end of file -- GitLab