Skip to content

Instantly share code, notes, and snippets.

@MaySnow
Created October 9, 2012 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaySnow/3856096 to your computer and use it in GitHub Desktop.
Save MaySnow/3856096 to your computer and use it in GitHub Desktop.
gson 解析 javascript
var date = [{"name":"不错"},{"name":"全选"},{"name":"还好"},{"name":"你好"}]
for(var i = 0 ; i < date.length; i ++) {
date[i].name//得到每个name值
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment