首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

Json 处置

2012-08-27 
Json 处理optIntpublic int optInt(java.lang.String?key)Get an optional int value associated with a k

Json 处理

optInt
public int optInt
(java.lang.String?key)
Get an optional int value associated with a key,
or zero if there is no such key or if the value is not a number.
If the value is a string, an attempt will be made to evaluate it as
a number.

Parameters:
key - A key string.

Returns:
An object which is the value.

==================================================

optDouble
public double optDouble
(java.lang.String?key)
Get an optional double associated with a key,
or NaN if there is no such key or if its value is not a number.
If the value is a string, an attempt will be made to evaluate it as
a number.

Parameters:
key - A string which is the key.

Returns:
An object which is the value.





?

热点排行