liger 的 ligerDialog 的使用。

        /// 查看页面,跳出一个新的添加窗口
function AddMessage() { $.ligerDialog.open({ url: UrlAddMessage, height:
500, width: 800, title: "AddMsg", isHidden: true }); }
/// 添加页面,保存后,刷新查看页面的数据
      $.post(UrlAddMessge, { Title : Title,Users : Users, Content : Content},
            function (data) {
                if (data.result) {
                    $.ligerDialog.success("保存成功!");
                    window.parent.$("#maingrid").ligerGrid().reload();
                } else {
                    $.ligerDialog.error(data.msg);
                }
            }); //post

 

posted @ 2014-09-19 16:06  不能失败  阅读(1502)  评论(0编辑  收藏  举报