var map = { 地名: ["北京","天津","上海"], 民族: ["汉族","藏族","维吾尔族"] }; $.each(map,function(key,values){ console.log(key); $(values).each(function(){ console.log("/t" + this); }); });
本文共 262 字,大约阅读时间需要 1 分钟。
var map = { 地名: ["北京","天津","上海"], 民族: ["汉族","藏族","维吾尔族"] }; $.each(map,function(key,values){ console.log(key); $(values).each(function(){ console.log("/t" + this); }); });
转载于:https://www.cnblogs.com/userzf/p/10120133.html