在SpringMVC中在Controller返回一个list的json字符串,在前台如何获取?比如我想获取noticeId 20
如后台响应的是:[{"noticeId":"2222","noticeTitle":"产品推荐","isEnabled":"1","creationDate":14423...
如后台响应的是:
[{"noticeId":"2222","noticeTitle":"产品推荐","isEnabled":"1","creationDate":1442387140000,"lastUpdatedBy":null,"lastUpdateDate":1442307047000,"receiveBu":null,"receiveCustomerNo":"G0000194","receiveStatus":null,"noticeType":"1","relationId":"4028b8814fc00aac014fc01d22c20001","productCode":"220070900360"},
{"noticeId":"111","noticeTitle":"产品推荐","isEnabled":"1","creationDate":1443423883000,"lastUpdatedBy":null,"lastUpdateDate":1442307044000,"receiveBu":null,"receiveCustomerNo":"G0000194","receiveStatus":null,"noticeType":"1","relationId":"4028b8814fc00aac014fc01d22c20001","productCode":"220070900360"}] 展开
[{"noticeId":"2222","noticeTitle":"产品推荐","isEnabled":"1","creationDate":1442387140000,"lastUpdatedBy":null,"lastUpdateDate":1442307047000,"receiveBu":null,"receiveCustomerNo":"G0000194","receiveStatus":null,"noticeType":"1","relationId":"4028b8814fc00aac014fc01d22c20001","productCode":"220070900360"},
{"noticeId":"111","noticeTitle":"产品推荐","isEnabled":"1","creationDate":1443423883000,"lastUpdatedBy":null,"lastUpdateDate":1442307044000,"receiveBu":null,"receiveCustomerNo":"G0000194","receiveStatus":null,"noticeType":"1","relationId":"4028b8814fc00aac014fc01d22c20001","productCode":"220070900360"}] 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏20(财富值+成长值)
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询