IT Fashion
A very private tech blog.
Showing posts with label
json
.
Show all posts
Showing posts with label
json
.
Show all posts
Monday, December 12, 2016
JSON Datatype
Javascript 在很多时候会把 JSON 对象里面没有双引号包围的值,当做数值处理。
比如: {
"a"
:987654321} 这个 JSON 里头的变量 a,会被当做一个整数 987654321 看待,
而:{
"a"
:
"987654321"
} 这个 JSON 里头的变量 a,会被当做一个字串,字串的内容是“987654321”。
@reference_1_sanwen8
Older Posts
Home
Subscribe to:
Posts (Atom)
About Me
itfashion
View my complete profile