如后台:json格式是{flag:true,msg:'xxx'}, 前台转换须加var obj = eval("("+paramater+")"); 转换json对象 转载于:https://my.oschina.net/u/175660/blog/93394