zoukankan      html  css  js  c++  java
  • ligerDialog的使用

    1.通过ViewBag来传值。

       @if (ViewBag.ReturnMessage != null)

    2.脚本代码:

    对话框设计与赋值问题。

    <script type="text/javascript">
        $(function () {
            if (document.getElementById("dialog-BorrowInformation") != null) {
                $.ligerDialog.open({
                    target: $("#dialog-BorrowInformation"),
                    title: '温馨提示:“您有借款未还清,是否确定不冲账,继续提交。',
                    height: 380,  840,
                    buttons: [
                        { text: '继续提交', onclick: function (item, dialog) { $("#IsHintBorrowInformationCheck").val(true); $("#submitZD").click(); dialog.hide(); } },
                        { text: '取消', onclick: function (item, dialog) { dialog.hide(); } }
                    ],
                    isResize: true 
                });
            }
            if (document.getElementById("dialog-radioHintOfficialCardDeadlineMessage") != null) {
                $.ligerDialog.open({ target: $("#dialog-radioHintOfficialCardDeadlineMessage"), title: '警告', height: 200,  450, buttons: [{ text: '继续提交', onclick: function (item, dialog) { $("#IsHintOfficialCardDeadline").val(true); $("#submitZD").click(); dialog.hide(); } }, { text: '取消', onclick: function (item, dialog) { dialog.hide(); } }], isResize: true });
            }
        });
    </script>

     3.动态网页的一些设计

    @Html.Raw(@ViewBag.HintOfficialCardDeadlineMessage);
    @ViewContext.Writer.Write(rec.Agent);
    
    @ViewContext.Writer.Write(rec.Remark.Substring(0, 8) + "..");
  • 相关阅读:
    Java中判断两个列表是否相等
    chrome:插件、跨域、调试....
    mac 开发环境采坑
    webpack升级踩坑
    js-使用装饰器去抖
    React setState 笔试题,下面的代码输出什么?
    react 解决:容器组件更新,导致内容组件重绘
    centos使用ngnix代理https
    javascript 理解继承
    js 数据监听--对象的变化
  • 原文地址:https://www.cnblogs.com/jacketlin/p/5673419.html
Copyright © 2011-2022 走看看