1
keakon Oct 5, 2012
你是要遍历map么
for (key in location) { console.log(key + ': ' + a.location[key])} } |
2
lisztli Oct 5, 2012
var response_json = $.parseJSON(respTxt);
|
6
bitsmix Oct 6, 2012
template engine 还是用 {{mustache}} 吧。
另外,如果问题是 parseJSON 解决的就说明服务器传回来的 content-type 不对。 我的意思是你的问题其实还是没真正解决。 |