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) + "..");
  • 相关阅读:
    pandas replace 替换功能function
    pandas 处理文本数据
    vue-cli3使用bootstrap4
    Sass和less的区别是什么?用哪个好
    vue项目首屏加载优化实战
    NodeJS 框架一览
    pre -commit hook failed (add --no-verify to bypass)
    安装与卸载vue cli3
    vue-cli3.0之vue.config.js的配置项(注解)
    Sass-颜色运算
  • 原文地址:https://www.cnblogs.com/jacketlin/p/5673419.html
Copyright © 2011-2022 走看看