From b46d841d8d3dd59d2c156755d6b5cbc0303e1ece Mon Sep 17 00:00:00 2001 From: lizhongyi <lizhongyi@dcloud.io> Date: Mon, 30 Oct 2023 19:36:47 +0800 Subject: [PATCH] update uts-plugin.md utsioshookclass.md number.md --- docs/plugin/uts-plugin.md | 4 +- docs/uts/buildin-object-api/number.md | 62 +++++---------------------- docs/uts/utsioshookproxy.md | 3 +- 3 files changed, 15 insertions(+), 54 deletions(-) diff --git a/docs/plugin/uts-plugin.md b/docs/plugin/uts-plugin.md index 481c13ba7..24f3ea30c 100644 --- a/docs/plugin/uts-plugin.md +++ b/docs/plugin/uts-plugin.md @@ -636,7 +636,9 @@ export default function getBatteryLevel():number { > æ¤åŠŸèƒ½åœ¨ HBuilderX 3.96+ 版本支æŒï¼ŒHBuilderX 3.96 之å‰çš„版本ä¸æ”¯æŒã€‚ #### iOS å¹³å° - 在æ’件开å‘过程ä¸ï¼Œæœ‰æ—¶æˆ‘们需è¦ç›‘å¬ APP 的生命周期函数æ¥å®Œæˆä¸€äº›ä¸šåŠ¡é€»è¾‘,比如在应用å¯åŠ¨æ—¶åˆå§‹åŒ–三方 SDK, 在收到推é€æ¶ˆæ¯æ—¶åšæ¶ˆæ¯çš„处ç†ï¼Œåœ¨è¢« url scheme 唤醒时调用指定功能ç‰ç‰ã€‚ + +在æ’件开å‘过程ä¸ï¼Œæœ‰æ—¶æˆ‘们需è¦ç›‘å¬ APP 的生命周期函数æ¥å®Œæˆä¸€äº›ä¸šåŠ¡é€»è¾‘,比如在应用å¯åŠ¨æ—¶åˆå§‹åŒ–三方 SDK, 在收到推é€æ¶ˆæ¯æ—¶åšæ¶ˆæ¯çš„处ç†ï¼Œåœ¨è¢« url scheme 唤醒时调用指定功能ç‰ç‰ã€‚ + 在 iOS å¹³å°å¯ä»¥é€šè¿‡è‡ªå®šä¹‰ class éµå¾ª `UTSiOSHookProxy` å议的方å¼æ¥å®žçŽ°å¯¹åº”用程åºç”Ÿå‘½å‘¨æœŸå‡½æ•°çš„监å¬ã€‚ diff --git a/docs/uts/buildin-object-api/number.md b/docs/uts/buildin-object-api/number.md index 235b9a73b..11e44ddb4 100644 --- a/docs/uts/buildin-object-api/number.md +++ b/docs/uts/buildin-object-api/number.md @@ -3,57 +3,6 @@ Number 对象是ç»è¿‡å°è£…çš„èƒ½è®©ä½ å¤„ç†æ•°å—值的对象。 -## 实例属性 - -### MAX_VALUE - -<!-- UTSJSON.Number.MAX_VALUE.description --> - -<!-- UTSJSON.Number.MAX_VALUE.param --> - -<!-- UTSJSON.Number.MAX_VALUE.returnValue --> - -<!-- UTSJSON.Number.MAX_VALUE.compatibility --> - -### MIN_VALUE - -<!-- UTSJSON.Number.MIN_VALUE.description --> - -<!-- UTSJSON.Number.MIN_VALUE.param --> - -<!-- UTSJSON.Number.MIN_VALUE.returnValue --> - -<!-- UTSJSON.Number.MIN_VALUE.compatibility --> - -### NaN - -<!-- UTSJSON.Number.NaN.description --> - -<!-- UTSJSON.Number.NaN.param --> - -<!-- UTSJSON.Number.NaN.returnValue --> - -<!-- UTSJSON.Number.NaN.compatibility --> - -### NEGATIVE_INFINITY - -<!-- UTSJSON.Number.NEGATIVE_INFINITY.description --> - -<!-- UTSJSON.Number.NEGATIVE_INFINITY.param --> - -<!-- UTSJSON.Number.NEGATIVE_INFINITY.returnValue --> - -<!-- UTSJSON.Number.NEGATIVE_INFINITY.compatibility --> - -### POSITIVE_INFINITY - -<!-- UTSJSON.Number.POSITIVE_INFINITY.description --> - -<!-- UTSJSON.Number.POSITIVE_INFINITY.param --> - -<!-- UTSJSON.Number.POSITIVE_INFINITY.returnValue --> - -<!-- UTSJSON.Number.POSITIVE_INFINITY.compatibility --> ## 实例方法 @@ -271,6 +220,7 @@ console.log(a.toLong()); <!-- UTSJSON.Number.toUInt8.compatibility --> +## é™æ€æ–¹æ³• ### from() @@ -280,4 +230,12 @@ console.log(a.toLong()); <!-- UTSJSON.Number.from.returnValue --> -<!-- UTSJSON.Number.from.compatibility --> \ No newline at end of file +<!-- UTSJSON.Number.from.compatibility --> + +```ts +let a: Int = 12 +let b = Number.from(a) +console.log(b); +// expected output: 12 + +``` \ No newline at end of file diff --git a/docs/uts/utsioshookproxy.md b/docs/uts/utsioshookproxy.md index 1f31bd7ef..6f4aff39d 100644 --- a/docs/uts/utsioshookproxy.md +++ b/docs/uts/utsioshookproxy.md @@ -1,7 +1,8 @@ # UTSiOSHookProxy +应用程åºç”Ÿå‘½å‘¨æœŸå›žè°ƒå议,æ¤å议内的所有函数å‡ç”± app 调用,开å‘者å¯æŒ‰éœ€å®žçŽ°å¯¹åº”时机的回调函数。具体的使用方法[详è§](https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#hooksclass) -## 实例方法 +## 应用程åºç”Ÿå‘½å‘¨æœŸå›žè°ƒå‡½æ•° ### onCreate() -- GitLab