在select标签中添加

lay-filter="cartype"
<script type="text/javascript">
        form.on('select(cartype)', function(data){ 
            if(data.value == '2'){
                $("#starttime").show();
                $("#endtime").show();
            }else{
                $("#starttime").hide();
                $("#endtime").hide();
            }
        }); 
    </script>

 

相关文章:

  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-02-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案