javascript-json字符串数组转json数组对象

           后台的数据为

[{"userId":"1","userName":"系统管理员"},{"userId":"2","userName":"Helen"},{"userId":"3","userName":"sarah_psy"}]

            var recivers='后台的数据';//注意单引号,与后台不同

            recivers=jQuery.parseJSON(recivers);//后台数据要全部用双引号,JSON的标准格式必须使用双引号

            

猜你喜欢

转载自liumayulingyan.iteye.com/blog/2082241
今日推荐