coffeescript遍历json对象.
直接给代码:
[python] view plaincopy在CODE上查看代码片派生到我的代码片
headers = a:”this is a”
,b:”this is b”
,c:”this is c”
exheaders = e : “this is e”,c:”this is c”
headers[key] = value for key,value of exheaders
alert “key:#{key},value:#{value}” for key,value of headers
for[......]