直接给代码: 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,va…
Js代码 <script type="text/javascript"> getJson('age'); function getJson(key){ var jsonObj={"name":"张三","age":"24","profession":"工程师"}; 遍历Json串获取其属性 for(var item in jsonObj){ if(item…