We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 442ff5c commit 1fb3a6dCopy full SHA for 1fb3a6d
1 file changed
2-ui/1-document/08-styles-and-classes/2-create-notification/task.md
@@ -9,12 +9,12 @@ importance: 5
9
参数:
10
11
```js
12
-// shows an element with the text "Hello" near the right-top of the window
+// 在窗口的右上角附近显示一个带有文本 "Hello" 的元素
13
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)
+ top: 10, // 距窗口顶部 10px(默认为 0px)
+ right: 10, // 距窗口右边缘 10px(默认为 0px)
+ html: "Hello!", // 通知中的 HTML
+ className: "welcome" // div 的附加类(可选)
18
});
19
```
20
0 commit comments