循环json时为什么会多出一个undefined - 跟谁学
循环json时为什么会多出一个undefined var text='[{"id":"1","title":"Hello world!","created":"1457222400","content":"Hello world"}]'; var json=...
js遍历json对象为什么多了个undefined_百度知道
最佳答案: 因为你没有给str1初值, 所以str1一开始是undefined 然後undefined和字符串做+操作会把undefined转换为字符串'undefined'後拼接 从而得到你不期望的结果 你...更多关于循环json时为什么会多出一个undefined的问题>>