Skip to content

Commit 1fb3a6d

Browse files
authored
Update task.md
1 parent 442ff5c commit 1fb3a6d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • 2-ui/1-document/08-styles-and-classes/2-create-notification

2-ui/1-document/08-styles-and-classes/2-create-notification/task.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ importance: 5
99
参数:
1010

1111
```js
12-
// shows an element with the text "Hello" near the right-top of the window
12+
// 在窗口的右上角附近显示一个带有文本 "Hello" 的元素
1313
showNotification({
14-
top: 10, // 10px from the top of the window (by default 0px)
15-
right: 10, // 10px from the right edge of the window (by default 0px)
16-
html: "Hello!", // the HTML of notification
17-
className: "welcome" // an additional class for the div (optional)
14+
top: 10, // 距窗口顶部 10px(默认为 0px
15+
right: 10, // 距窗口右边缘 10px(默认为 0px
16+
html: "Hello!", // 通知中的 HTML
17+
className: "welcome" // div 的附加类(可选)
1818
});
1919
```
2020

0 commit comments

Comments
 (0)