摘要: JSON取值(key是中文或者数字)方式详解 先准备一个json对象用于演示 var json = {'name':'zhangsan', '年龄':23, 404:'你可能迷路了'}; 1. 使用JS中with关键字 with(json) { console.log(name);//输出:zhan 阅读全文
posted @ 2017-08-09 14:29 weixsun 阅读(42493) 评论(0) 推荐(5) 编辑