jsonStr转换成json格式 两种原因,第一种jq引用的路径不对。第二种 把jsonStr转换成json格式 。var userName=jQuery.parseJSON(jsonStr).userName