0

下面这个对象,我想用js把它转为拼音:

{
"110000":"北京市",
"110101":"东城区",
"110102":"西城区",
"110105":"朝阳区",
"110106":"丰台区",
"110107":"石景山区",
"110108":"海淀区",
"110109":"门头沟区",
"110111":"房山区",
"110112":"通州区",
"110113":"顺义区",
"110114":"昌平区",
"110115":"大兴区",
"110116":"怀柔区",
"110117":"平谷区",
"110118":"密云区",
"110119":"延庆区"
}

保存为:

{
"110000":"beijingshi",
"110101":"dongchengqu",
"110102":"xichengqu"
//...
}

怎么转呢,没点思路,请各位大佬帮说一下啊

cherrylee 1.2k
2017-10-26 提问

查看全部 3 个回答

推广链接