From 67ae8dbf4beb19762412e39feeacaefe49d3bd67 Mon Sep 17 00:00:00 2001 From: James Chen Date: Wed, 17 Jan 2018 14:35:34 +0800 Subject: [PATCH] update comments. --- cocos2d/core/platform/CCDevice.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cocos2d/core/platform/CCDevice.js b/cocos2d/core/platform/CCDevice.js index ed7308ec3f..05bbbe1857 100644 --- a/cocos2d/core/platform/CCDevice.js +++ b/cocos2d/core/platform/CCDevice.js @@ -48,9 +48,9 @@ cc.NetworkType = { cc.Device = { /** * !#en - * Gets the battery level of current device + * Get the battery level of current device, return 1.0 if failure. * !#zh - * 获取当前设备的电池电量 + * 获取当前设备的电池电量,如果电量无法获取,默认将返回 1 * * @method getBatteryLevel * @return {Number} - 0.0 ~ 1.0 @@ -63,9 +63,9 @@ cc.Device = { /** * !#en - * Gets the network type of current device + * Get the network type of current device, return cc.NetworkType.LAN if failure. * !#zh - * 获取当前设备的网络类型 + * 获取当前设备的网络类型, 如果网络类型无法获取,默认将返回 cc.NetworkType.LAN * * @method getNetworkType * @return {NetworkType}