mui 区域三级联动

<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();
}

mui 区域三级联动

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

上一篇:关于line box,inline box,line-height,vertical-align之间的关系


下一篇:Java并发案例01---多线程之死锁