【文件属性】:
文件名称:easy-location-br:轻松查找巴西各州和城市
文件大小:216KB
文件格式:ZIP
更新时间:2021-05-17 05:08:06
JavaScript
容易定位
轻松查找巴西各州和城市。
与巴西各州和城市一起创建选择不再需要那么复杂 :Brazil: :party_popper:
安装
yarn add easy-location-br
或者
npm i easy-location-br
CDN
导入ES6
import { getAllStates , getAllCities , getStateCities } from "easy-location-br" ;
getAllStates ( ) ;
/*
[
{ id: 'AC', name: 'Acre' },
{ id: 'AL', name: 'Alagoas' },
{ id: 'AM', name: 'Amazonas' },
{ id: 'AP', name: 'Amapá' },
...]
*/
getAllCities ( ) ;
/*
[
【文件预览】:
easy-location-br-master
----yarn.lock(269KB)
----.eslintrc.js(250B)
----src()
--------.eslintrc(36B)
--------index.test.js(644B)
--------data()
--------index.js(373B)
----.babelrc(101B)
----LICENSE(1KB)
----README.md(1KB)
----dist()
--------index.modern.js(192KB)
--------index.js.map(762B)
--------index.js(192KB)
--------index.modern.js.map(837B)
----.gitignore(13B)
----package.json(939B)