• 后台提示


          /// <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;
            }

  • 相关阅读:
    javase程序设计上机作业2
    操作系统课堂笔记——01,操作系统介绍
    javase程序设计上机作业1
    Matlab学习笔记1—MATLAB基础知识
    Matlab学习笔记0—课程导入
    【转】WEB技术发展简史
    leetcode-79-单词搜索(用dfs解决)
    leetcode-78-子集(用bfs解决)
    leetcode-74-搜索二维矩阵
    leetcode-46-全排列
  • 原文地址:https://www.cnblogs.com/change4now/p/5665217.html
Copyright © 2020-2023  润新知