mui 区域三级联动

it2022-05-06  10

<link href="../../css/mui.picker.css" rel="stylesheet" /><link href="../../css/mui.poppicker.css" rel="stylesheet" /> <script type="text/javascript" src="../../js/jquery/mui.picker.js"></script><script type="text/javascript" src="../../js/jquery/mui.poppicker.js"></script><script type="text/javascript" src="../../js/jquery/city.data-3.js"></script> //文件里定义了 var cityData3 = 一个区域的json对象; mui.init();mui(function () { cityPicker = new mui.PopPicker({ layer: 3 }); cityPicker.setData(cityData3);});//选择区域function chooseArea(){   cityPicker.show(function(items) {    // items为选中的三级区域信息   }); } //关闭选择器function closeChoose(){   cityPicker.hide(); }

 

 文件下载地址:https://github.com/WangChangyao/areapicker.git

转载于:https://www.cnblogs.com/changyaoself/p/7727064.html

相关资源:基于muiH5城市选择器.rar

最新回复(0)