EasyUI 笔记(3)弹出窗体

来源:互联网 发布:js 写文件 编辑:程序博客网 时间:2024/06/11 11:26

一、弹出另一个页面


1.js弹出窗体函数  

// 弹出新窗体

        function newPopup(_title, _href, _width, _height, _id) {
            $.window({
                winId: _id,
                title: _title,
                width: _width,
                height: _height,
                modal: true,
                inline: true,
                isIframe: true,
                self: true,
                url: _href
            });

        }

2.调用函数弹出窗体

  newPopup("添加测站", "Select/SelectPage.aspx?typeid= &pid= &skstcd=" + $("#sk").val() + "&tm=" + $("#StartTime").datebox("getValue") + "&stcds=" + czstcds + "", 500, 430, "select_cz");

3.关闭窗体

 $("#select_cz").window("close");

由于调出页面时将窗体的ID赋值为select_cz,所以关闭的时候直接可以通过jq找到id,进行操作即可


可以实现类似于CS结构的弹出模式对话框的效果


二、弹出提示框

 $.messager.alert("提示信息", "操作成功!");

0 0
原创粉丝点击