浏览器控制台调试json数据
var str ='{"code":0,"message":"","systemTime":"2017-10-12 11:47:42","data":{"pageNum":1,"pageSize":30,"size":1,"startRow":1,"endRow":1,"total":1,"pages":1,"list":[{"id":103,"parentId":101,"deptName":"海珠区","firstLetter":"","orgCode":"510500.002.510000.510002","sortIndex":103,"pathName":"广州市荔湾区农业局","syncKey":"","deptDesc":"","deptExt":"","isActive":1,"modifyTime":"2017-06-19 16:31:49","parentDeptName":"广州市","orgCorpName":""}],"firstPage":1,"prePage":0,"nextPage":0,"lastPage":1,"isFirstPage":true,"isLastPage":true,"hasPreviousPage":false,"hasNextPage":false,"navigatePages":8,"navigatepageNums":[1]}}'; JSON.parse(str).data.list[0].deptName;