Skip to content

Commit ecdf581

Browse files
author
甄帅
committed
Update README.md
1 parent cc6f10a commit ecdf581

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,23 @@ bower install angular-wt-genius
1212
angular provider 封装第三方插件 [notify.js](https://github.com/alexgibson/notify.js)
1313

1414
```
15+
// 全局配置
1516
$wtNotifyProvider.config({
1617
title: 'Worktile 桌面通知',
1718
icon : '/img/wt-logo.png'
1819
});
1920
```
2021

2122
```
23+
// 插件参数设置
2224
$wtNotify.notify({
2325
title: '桌面通知',
2426
body : 'Hey, 我在这里!'
2527
});
2628
```
2729

2830
```
31+
// 请求权限
2932
$wtNotify.checkPermission(function () {
3033
//success
3134
}, function () {

0 commit comments

Comments
 (0)