欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

jquery model 框设定

程序员文章站 2022-05-18 22:01:05
js function searchItemInfo(conditionNo,lotCD,itemKey) { var conditionNos=conditionNo+":"+itemKey; $('#H5').html('

js

function searchiteminfo(conditionno,lotcd,itemkey) {

var conditionnos=conditionno+":"+itemkey;

$('#h5').html('<spring:message code="w030100040"></spring:message>');

//这里需要跳转响应的页面 写在controller

$('#detailmodel iframe').attr("src",

"${pagecontext.request.contextpath}/w04053iteminformations/initsearch?conditionno="+conditionnos+"&lotcd="+lotcd);

$('#detailmodel').modal('show');

}

<body>

<a onclick="searchiteminfo('${item.conditionno}','${item.lotcd}','${item.itemkey}');">

modol 页面

<!-- iframe?-->

<div class="modal fade" id="detailmodel" tabindex="-1" role="dialog" aria-labelledby="picseleclmodallabel" aria-hidden="true" data-backdrop="static">

        <div class="modal-dialog" style="width :65%;"> <div class="modal-content">

        <div class="modal-header">

         <button type="button" class="close"

                                  data-dismiss="modal" aria-hidden="true">&times;</button>

          <h4 class="modal-title" id="h5"></h4> </div> <div class="modal-body">

          <iframe name="iframe" src="" frameborder="0" style="height:200px;width :80%;">

          </iframe>   

          </div>

        </div>

      </div>

    </div>

</body>

参考样式

 jquery model 框设定