From 8ff21d5c602136de656acc7a7d6ca08d6a9fc218 Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Mon, 20 Jun 2022 19:02:20 +0800 Subject: [PATCH] update js-apis-notification.md Signed-off-by: ester.zhou --- .../reference/apis/js-apis-notification.md | 3 ++- en/application-dev/reference/apis/js-apis-request.md | 10 +++++++--- .../reference/arkui-ts/ts-interpolation-calculation.md | 5 +++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-notification.md b/en/application-dev/reference/apis/js-apis-notification.md index 6c835fce2c..0884f2a2ea 100644 --- a/en/application-dev/reference/apis/js-apis-notification.md +++ b/en/application-dev/reference/apis/js-apis-notification.md @@ -1,6 +1,6 @@ # Notification -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE** > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import @@ -2900,6 +2900,7 @@ Notification.subscribe(subscriber, subscribeCallback); | title | Yes | Yes | string | Yes | Button title. | | wantAgent | Yes | Yes | WantAgent | Yes | **WantAgent** of the button.| | extras | Yes | Yes | { [key: string]: any } | No | Extra information of the button. | +| userInput | Yes | Yes | [NotificationUserInput](#notificationuserinput8) | No | User input. | ## NotificationBasicContent diff --git a/en/application-dev/reference/apis/js-apis-request.md b/en/application-dev/reference/apis/js-apis-request.md index 256be1a80f..d1c0ffc0d0 100644 --- a/en/application-dev/reference/apis/js-apis-request.md +++ b/en/application-dev/reference/apis/js-apis-request.md @@ -7,7 +7,7 @@ ## Modules to Import -``` +```js import request from '@ohos.request'; ``` @@ -84,8 +84,10 @@ Uploads files. This API uses a promise to return the result. ```js let file1 = { filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }; + let data = { name: "name123", value: "123" }; + let header = { key1: value1, key2: value2 }; let uploadTask; - request.upload({ url: 'https://patch', files: [file1] }).then((data) => { + request.upload({ url: 'https://patch', header: header, method: "POST", files: [file1], data: [data] }).then((data) => { uploadTask = data; }).catch((err) => { console.error('Failed to request the upload. Cause: ' + JSON.stringify(err)); @@ -114,8 +116,10 @@ Uploads files. This API uses an asynchronous callback to return the result. ```js let file1 = { filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }; + let data = { name: "name123", value: "123" }; + let header = { key1: value1, key2: value2 }; let uploadTask; - request.upload({ url: 'https://patch', files: [file1] }, (err, data) => { + request.upload({ url: 'https://patch', header: header, method: "POST", files: [file1], data: [data] }, (err, data) => { if (err) { console.error('Failed to request the upload. Cause: ' + JSON.stringify(err)); return; diff --git a/en/application-dev/reference/arkui-ts/ts-interpolation-calculation.md b/en/application-dev/reference/arkui-ts/ts-interpolation-calculation.md index c813176660..60a948e43c 100644 --- a/en/application-dev/reference/arkui-ts/ts-interpolation-calculation.md +++ b/en/application-dev/reference/arkui-ts/ts-interpolation-calculation.md @@ -31,7 +31,8 @@ Implements initialization for the interpolation curve, which is used to create a | -------- | -------- | -------- | -------- | -------- | | curve | Curve | No | Linear | Curve object. | -- Return value
+- Return value + Curve object. @@ -47,7 +48,7 @@ Constructs a step curve object. | Name | Type | Mandatory | Default Value | Description | | -------- | -------- | -------- | -------- | -------- | | count | number | Yes | - | Number of steps. Must be a positive integer. | - | end | boolean | No | true | Step change at the start or end point of each interval. Defaults to **true**, indicating that the step change occurs at the end point. | + | end | boolean | Yes | true | Step change at the start or end point of each interval. Defaults to **true**, indicating that the step change occurs at the end point. | - Return value -- GitLab