city.import.min.js 模块化加载 city.min.js 直接引入 引入之后使用放入如下,需要借助jq var ylc = yeluochenCity('J-demo', (city) => {console.log(city)}, null); console.log(ylc); var ylc2 = yeluochenCity('J-demo2', (city) => {console.log(city)}, { province: '四川', city: '成都', district: '成化区' }); console.log(ylc2); }); console.log(ylc2);