You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
直接看代码
`
JSONObject jsonObject = JSONObject.parseObject("{"qty":"10.0"}");
int qty = jsonObject.getIntValue("qty");
`
字符串转换为数值的时候,可不可以自动去掉后面是 .0 的,再转。这样就不怕有错误。