提交 5fc996be 编写于 作者: L luoying_ace_admin

revise doc

Signed-off-by: Nluoying_ace_admin <luoying19@huawei.com>
上级 be81bfb0
...@@ -34,7 +34,7 @@ create(options: AnimatorOptions): AnimatorResult ...@@ -34,7 +34,7 @@ create(options: AnimatorOptions): AnimatorResult
**示例:** **示例:**
```js ```js
var options = { let options = {
duration: 1500, duration: 1500,
easing: 'friction', easing: 'friction',
delay: 0, delay: 0,
...@@ -79,7 +79,7 @@ reset(options: AnimatorOptions): void ...@@ -79,7 +79,7 @@ reset(options: AnimatorOptions): void
**示例:** **示例:**
```js ```js
var options = { let options = {
duration: 1500, duration: 1500,
easing: 'friction', easing: 'friction',
delay: 0, delay: 0,
...@@ -266,7 +266,7 @@ export default { ...@@ -266,7 +266,7 @@ export default {
animator: null animator: null
}, },
onInit() { onInit() {
var options = { let options = {
duration: 1500, duration: 1500,
easing: 'friction', easing: 'friction',
delay: 0, delay: 0,
...@@ -279,7 +279,7 @@ export default { ...@@ -279,7 +279,7 @@ export default {
this.animator = animator.create(options); this.animator = animator.create(options);
}, },
Show() { Show() {
var options1 = { let options1 = {
duration: 1500, duration: 1500,
easing: 'friction', easing: 'friction',
delay: 0, delay: 0,
...@@ -294,7 +294,7 @@ export default { ...@@ -294,7 +294,7 @@ export default {
} catch(error) { } catch(error) {
console.error(`Animator reset failed, error code: ${error.code}, message: ${error.message}.`); console.error(`Animator reset failed, error code: ${error.code}, message: ${error.message}.`);
} }
var _this = this; let _this = this;
this.animator.onframe = function(value) { this.animator.onframe = function(value) {
_this.divWidth = value; _this.divWidth = value;
_this.divHeight = value; _this.divHeight = value;
...@@ -353,7 +353,7 @@ createAnimator(options: AnimatorOptions): AnimatorResult ...@@ -353,7 +353,7 @@ createAnimator(options: AnimatorOptions): AnimatorResult
**示例:** **示例:**
```js ```js
var options = { let options = {
duration: 1500, duration: 1500,
easing: 'friction', easing: 'friction',
delay: 0, delay: 0,
......
...@@ -604,7 +604,7 @@ router.getParams(); ...@@ -604,7 +604,7 @@ router.getParams();
| 名称 | 描述 | | 名称 | 描述 |
| -------- | ---------------------------------------- | | -------- | ---------------------------------------- |
| Standard | 标准模式。 | | Standard | 标准模式。 <br/>目标页面会被添加到页面路由栈顶,无论栈中是否存在相同url的页面。 |
| Single | 单实例模式。<br/>如果目标页面的url在页面栈中已经存在同url页面,离栈顶最近的页面会被移动到栈顶,移动后的页面为新建页。<br/>如目标页面的url在页面栈中不存在同url页面,按标准模式跳转。 | | Single | 单实例模式。<br/>如果目标页面的url在页面栈中已经存在同url页面,离栈顶最近的页面会被移动到栈顶,移动后的页面为新建页。<br/>如目标页面的url在页面栈中不存在同url页面,按标准模式跳转。 |
## 完整示例 ## 完整示例
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册