未验证 提交 25d92f56 编写于 作者: 小马奔腾 提交者: Gitee

Modify the example

Modify the example

issue: https://gitee.com/openharmony/docs/issues/I645RHSigned-off-by: N小马奔腾 <maxiaodong16@huawei.com>
上级 b14f3578
......@@ -668,8 +668,7 @@ parseRationalNumber(numerator: number,denominator: number): RationalNumber
**示例:**
```js
let rationalNumber = new util.RationalNumber();
rationalNumber.parseRationalNumber(1,2)
let rationalNumber = util.RationalNumber.parseRationalNumber(1,2)
```
### constructor<sup>(deprecated)</sup>
......@@ -1488,7 +1487,8 @@ contains(key: object): boolean
```js
let pro = new util.LRUCache();
pro.put(2,10);
let result = pro.contains(20);
let obj = {1:"key"};
let result = pro.contains(obj);
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册