var details = {author:"isaac","description":"fresheggs","rating":100};storage.setItem("details",JSON.stringify(details));details = JSON.parse(storage.getItem("details"));
json stringify parse
原文:http://www.cnblogs.com/fang51/p/4453691.html