update comments.

This commit is contained in:
James Chen
2018-01-17 14:35:34 +08:00
parent 1d88af11ed
commit 67ae8dbf4b
+4 -4
View File
@@ -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}