jquery使用dialog调用弹出框

1、jquery可以调用弹出框,语法如下:

  $.dialog("open",
        {
      id:'dialog',
            name : 'create-guide',
            title : '创建结果:',
            html : $('#review-result').html(),
            width : 460,
            frameScrolling : 'no',
         close:function(){
       if(dataArray[1] == 0){
        
       }else {
        window.location.href = "${ctx}/web/form/order/build-order.do";
        //document.ec.submit();
       }
       $("#errorBody").html('');
         }
        });

 

<script type="text/dialog" id="review-result">
<div class="inborder">
    <h3 class="reviewFailure" color="red">创建失败(<span id="failCount"></span>)</h3>
    <table class="list-grid list-grid-highlight">
        <thead>
            <tr>
                <th width="120px">
                    <label>申请编号</label>
                </th>
                <th>
                    <label>原因</label>
                </th>
            </tr>
        </thead>
        <tbody id="errorBody" >
           
        </tbody>
    </table>
    <h3 class="reviewSuccess">创建成功(<span id="successCount"></span>)</h3>
 <h3 class="reviewSuccess">签收单号:<span id="orderNo"></span></h3>
</div>
</script>

 

调用close方法,当dialog调出的弹出业关闭时调用执行的操作。

转载于:https://www.cnblogs.com/yoosha/p/4134990.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值