前台代码

<div class="modal fade" >  

//这里要注意src的路径先不要给   等选择编辑的时候用ajax的回调函数给  不然会报加载页面错误
          <iframe >Save changes</button>*@  
      </div>  
    </div><!-- /.modal-content -->  
  </div><!-- /.modal-dialog -->  
</div><!-- /.modal --->

 

JS代码

                                           

                           var frameSrc = "/SysLog/EidtBtnByUsers"

                              //给iframe加上src路径
                            $("#NoPermissioniframe").attr("src", frameSrc);

                             //显示模态框  只有在选择编辑的行   然后根据回调函数成功后才会显示模态框
                            $('#myModal').modal({ show: true, backdrop: 'static' })

 

相关文章:

  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
  • 2021-11-18
  • 2021-04-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案