• 后台提示


          /// <summary>
            /// 提示  民工考勤提示
            /// </summary>
            /// <param name="msg">提示内容</param>
            /// <param name="url">跳转url</param>
            /// <param name="timeOut">延迟</param>
            /// <returns></returns>
            public static string AlertTip(string msg="",string url="",int timeOut=2)
            {

                var result = "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><script src='/content/js/jquery-1.9.1.min.js'></script><link href='/content/css/artDialog.css' rel='stylesheet' type='text/css' /> <script src='/content/js/jquery.artDialog.js' type='text/javascript'></script>";
                var info = string.Format(" artDialog.tips("{0}");", msg);
                if (!string.IsNullOrEmpty(url))
                {
                    info += string.Format(" setTimeout(function () {{  location.href = "{0}"; }}, 1000*{1})",url,timeOut);
                }
                result += string.Format("<script type="text/javascript">$(function () {{{0}}})</script>", info);
                return result;
            }

  • 相关阅读:
    sql except 用法,找两个表中非共同拥有的
    ‘堆’出你的洪荒之力
    原来你是个这样的JVM
    变形词
    54题
    最大对称子数组
    java 线程之间通信以及notify与notifyAll区别。
    大型网站架构系列:消息队列
    剑指offer第10题
    & 和 && 区别
  • 原文地址:https://www.cnblogs.com/change4now/p/5665217.html
Copyright © 2020-2023  润新知