ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 城市选择 [TOC] ## 实例操作 ![](https://box.kancloud.cn/3f23019510da363d063bd768f82bb75e_350x119.png) ``` <select name="address[province]" class="form-control"></select> <select name="address[city]" class="form-control"></select> <select name="address[area]" class="form-control"></select> <script> require(['hdjs'], function (hdjs) { hdjs.city({ //省份标签 province: document.querySelector('[name="address[province]"]'), //城市标签 city: document.querySelector('[name="address[city]"]'), //地区标签 area: document.querySelector('[name="address[area]"]'), }, { //默认省 province: '福建省', //默认市 city:'厦门市', //默认地区 area:'海沧区', }); }) </script> ```