From fa256bfb464f9871baa7b3cb2d892e5d36f1710d Mon Sep 17 00:00:00 2001 From: Hevin Date: Sat, 23 Sep 2017 09:11:21 +0800 Subject: [PATCH] Format api doc --- doc/Common_detail_api.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/Common_detail_api.md b/doc/Common_detail_api.md index f0bd8aa..ae1ecfc 100644 --- a/doc/Common_detail_api.md +++ b/doc/Common_detail_api.md @@ -528,11 +528,13 @@ document.addEventListener("jpush.receiveMessage", function (event) { 在 iOS 中,返回值为 0 时,代表系统设置中关闭了推送;大于 0 时,代表打开了推送,且能够根据返回值判断具体通知形式: +```js UIRemoteNotificationTypeNone = 0, // 0 UIRemoteNotificationTypeBadge = 1 << 0, // 1 UIRemoteNotificationTypeSound = 1 << 1, // 2 UIRemoteNotificationTypeAlert = 1 << 2, // 4 UIRemoteNotificationTypeNewsstandContentAvailability = 1 << 3 // 8 +``` #### 代码示例