json 解析

<script>
eval('var aa = {"1,1,!989C!8272!FF1A":"6,!82B1!8272,!82B1!8272","2,0,!5C3A!7801!FF1A":"13,XXS,XXS","4,0,!9762!6599!FF1A":"33,!5E03,!5E03"}');
	for (var k in aa)
	{
	   alert(k+' >> '+aa[k]);
	  //lst += k+': '+aa[k];
	} 
	
	
function js_convert_spec()
{
  $('dd[ka="goods"]').each(function(){
    var arr, lst='';
	eval('arr='+this.innerHTML);
	for (var k in arr)
	{
	  var v=decode(trim(arr[k]).replace(/^.*,/g,'')), n=decode(k.replace(/^.*,/g, ''));
	  lst += n+' '+v+'  ';
	}
    this.innerHTML = lst;
  });
}

function js_addins()
{
  js_convert_spec();
  
  
</script>

你可能感兴趣的:(json 解析)