MCPcopy Create free account
hub / github.com/akebe/address-parse / getTargetAreaListByCode

Function getTargetAreaListByCode

src/parse/utils.js:61–116  ·  view source on GitHub ↗

* 根据省市县类型和对应的`code`获取对应列表 * 只能逐级获取 province->city->area OK province->area ERROR * @param target String province city area * @param code * @param parent 默认获取子列表 如果要获取的是父对象 传true * @returns {*}

(target, code, parent)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected