未验证 提交 744e2b91 编写于 作者: O openharmony_ci 提交者: Gitee

!1464 翻译已完成

Merge pull request !1464 from shawn_he/master
...@@ -27,8 +27,9 @@ Creates an SMS message instance based on the protocol data unit (PDU) and the sp ...@@ -27,8 +27,9 @@ Creates an SMS message instance based on the protocol data unit (PDU) and the sp
- Example - Example
``` ```
let specification = '3gpp'; const specification = '3gpp';
let pdu = [0x08, 0x91, ...]; // Display PDUs using numbers in an array, for example, [0x08, 0x91, ...].
const pdu = [0x08, 0x91];
sms.createMessage(pdu, specification, (err, data) => { sms.createMessage(pdu, specification, (err, data) => {
console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
}); });
...@@ -57,8 +58,9 @@ Creates an SMS message instance based on the PDU and the specified SMS protocol. ...@@ -57,8 +58,9 @@ Creates an SMS message instance based on the PDU and the specified SMS protocol.
- Example - Example
``` ```
let specification = '3gpp'; const specification = '3gpp';
let pdu = [0x08, 0x91, ...]; // Display PDUs using numbers in an array, for example, [0x08, 0x91, ...].
const pdu = [0x08, 0x91];
let promise = sms.createMessage(pdu, specification); let promise = sms.createMessage(pdu, specification);
promise.then(data => { promise.then(data => {
console.log(`createMessage success, promise: data->${JSON.stringify(data)}`); console.log(`createMessage success, promise: data->${JSON.stringify(data)}`);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册