yanergui

在jquery easyui官方下载最新版demo1.4.4。。

引用

<link href="../css/easyui.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery.min.js" type="text/javascript"></script>
    <script src="../js/jquery.easyui.min.js" type="text/javascript"></script>

//url:窗口调用地址,title:窗口标题,width:宽度,height:高度,shadow:是否显示背景阴影罩层
function showMessageDialog(url, title, width, height, shadow) {
    var content = \'<iframe src="\' + url + \'" width="100%" height="99%" frameborder="0" scrolling="no"></iframe>\';
    var boarddiv = \'<div id="msgwindow" title="\' + title + \'"></div>\'//style="overflow:hidden;"可以去掉滚动条
    $(document.body).append(boarddiv);
    var win = $(\'#msgwindow\').dialog({
        content: content,
        width: width,
        height: height,
        modal: shadow,
        title: title,
        onClose: function () {
            $(this).dialog(\'destroy\');//后面可以关闭后的事件
        }
    });
    win.dialog(\'open\');
}







分类:

技术点:

相关文章:

  • 2021-10-15
  • 2021-07-28
  • 2022-12-23
  • 2022-01-19
  • 2022-02-27
  • 2021-09-20
  • 2021-11-28
  • 2021-10-04
猜你喜欢
  • 2021-09-17
  • 2021-10-21
  • 2022-12-23
  • 2021-11-28
  • 2021-10-04
  • 2021-04-02
  • 2021-05-25
相关资源
相似解决方案