miye

 

    <form id="actForm" action="${ctx}/meeting/vip/saveMeetingAttendVipAct" method="post" class="form-horizontal">
        <input name="attendVipId" id="attendVipId" type="hidden"/>
        <input type="hidden" name="actData" id="actData"/>
    </form>


 <script type="text/javascript">
         function ceshi(obj) {
            alert(obj);//弹出1
            alert(!obj);//弹出false
        }
     </script>

    //当传入的obj的值不为空的时候alert(!obj)弹出为false
    //当传入的obj的值为空的时候alert(!obj)弹出为true
    //故可以用与条件判断
    if(!obj){
        //js代码
    }
 

  

分类:

技术点:

相关文章:

  • 2021-12-07
  • 2021-12-07
  • 2021-12-07
  • 2021-10-16
  • 2021-10-16
  • 2021-10-19
  • 2021-11-05
猜你喜欢
  • 2021-10-16
  • 2021-05-14
  • 2021-11-05
  • 2021-12-10
  • 2021-12-04
  • 2021-12-07
相关资源
相似解决方案