Layui编写一个简单的公共省和市的级联
Layui编写一个简单的公共省和市的级联
这个是我的接口返回的数据格式,当然这个是简化版的:
{"code":0,"msg":"操作成功","data":[{"id":1,"provinceID":"110000","province":"北京市","cityList":[{"id":1,"cityID":null,"city":"北京市","father":"110000","initial":null,"hot":false,"areaList":null}]}]}
然后看一下前端代码:
<di
原创
2020-07-16 18:00:46 ·
519 阅读 ·
0 评论