后台的数据为
[{"userId":"1","userName":"系统管理员"},{"userId":"2","userName":"Helen"},{"userId":"3","userName":"sarah_psy"}]
var recivers='后台的数据';//注意单引号,与后台不同
recivers=jQuery.parseJSON(recivers);//后台数据要全部用双引号,JSON的标准格式必须使用双引号
后台的数据为
[{"userId":"1","userName":"系统管理员"},{"userId":"2","userName":"Helen"},{"userId":"3","userName":"sarah_psy"}]
var recivers='后台的数据';//注意单引号,与后台不同
recivers=jQuery.parseJSON(recivers);//后台数据要全部用双引号,JSON的标准格式必须使用双引号