摘要: //类名:EcanRMB //作用:数字转换为人民币大写 //作者: //时间: using System; using System.Collections.Generic; using System.Text; namespace Ecan { public class EcanRMB { // 阅读全文
posted @ 2020-09-14 17:31 积山海 阅读(241) 评论(0) 推荐(0) 编辑
摘要: public class CheckUtil { /// <summary> /// 检测DataSet是否有数据 /// </summary> /// <param name="ds"></param> /// <returns></returns> public static bool Chec 阅读全文
posted @ 2020-09-14 17:26 积山海 阅读(277) 评论(0) 推荐(0) 编辑
摘要: //安装windows服务%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe YHMesssge.exeNet Start Service1sc config Service1 start= auto //卸载windows 阅读全文
posted @ 2020-09-14 17:25 积山海 阅读(352) 评论(0) 推荐(0) 编辑
摘要: using System.IO; public class PublicWriteError { private static StreamWriter streamWriter; /// <summary> /// /// </summary> /// <param name="message"> 阅读全文
posted @ 2020-09-14 17:15 积山海 阅读(204) 评论(0) 推荐(0) 编辑
摘要: class ArrayToDataTable { //例子: string[] xqdw = XQDW.Split(','); string[] xmmc = XMMC.Split(','); DataTable UserDt = Convert("USER_CODE", usercode); st 阅读全文
posted @ 2020-09-14 17:14 积山海 阅读(886) 评论(0) 推荐(0) 编辑
摘要: /******************************************************************************** ** 作者: ** 创始时间: ** 修改人: ** 修改时间: ** 修改人: ** 修改时间: ** 描述: ** 命名空间: $r 阅读全文
posted @ 2020-09-14 17:10 积山海 阅读(285) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 判断当前页面是否接收到了Post请求 /// </summary> /// <returns>是否接收到了Post请求</returns> public static bool IsPost() { return HttpContext.Current.Reque 阅读全文
posted @ 2020-09-14 17:09 积山海 阅读(654) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; public class HttpRequestUtil 阅读全文
posted @ 2020-09-14 17:08 积山海 阅读(464) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using Newtonsoft.Json; using Newtons 阅读全文
posted @ 2020-09-14 17:07 积山海 阅读(364) 评论(0) 推荐(0) 编辑
摘要: window.history.go(-1) 是返回上一页window.location.go(-1) 是刷新上一页 阅读全文
posted @ 2020-09-14 17:04 积山海 阅读(119) 评论(0) 推荐(0) 编辑
摘要: $.ajaxSetup({ async: false }); $.ajaxSetup({ async: true }); 阅读全文
posted @ 2020-09-14 17:03 积山海 阅读(124) 评论(0) 推荐(0) 编辑
摘要: onkeyup="clearNoNum(this);" onafterpaste="clearNoNum(this);" // #region 限制输入为数字 function clearNoNum(obj) { //先把非数字的都替换掉,除了数字和. obj.value = obj.value.r 阅读全文
posted @ 2020-09-14 17:02 积山海 阅读(154) 评论(0) 推荐(0) 编辑
摘要: function IEVersion() { var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf( 阅读全文
posted @ 2020-09-14 16:59 积山海 阅读(340) 评论(0) 推荐(0) 编辑
摘要: WeixinJSBridge.call('closeWindow'); 阅读全文
posted @ 2020-09-14 16:58 积山海 阅读(752) 评论(0) 推荐(0) 编辑
摘要: var time = new Date(); // 程序计时的月从0开始取值后+1 var m = time.getMonth() + 1; var t = time.getFullYear() + "-" + m + "-" + time.getDate() + " " + time.getHou 阅读全文
posted @ 2020-09-14 16:54 积山海 阅读(204) 评论(0) 推荐(0) 编辑
摘要: function getUrlParam (paras) { var url = location.href; var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&"); var paraObj = {} 阅读全文
posted @ 2020-09-14 16:53 积山海 阅读(193) 评论(0) 推荐(0) 编辑
摘要: var r = /^\+?[1-9][0-9]*$/; //判断是否为正整数 r.test(str); 或者: function isNumber(value) { //验证是否为数字 var patrn = /^(-)?\d+(\.\d+)?$/; if (patrn.exec(value) == 阅读全文
posted @ 2020-09-14 16:51 积山海 阅读(418) 评论(0) 推荐(0) 编辑
摘要: onclick: 鼠标单击触发 ondblclick: 双击触发 onmouseover: 鼠标移动上面触发 onmouseout: 鼠标离开时触发 onmousemove: 鼠标在上面移动时触发 onchange: 只要内容改变触发 onblur: 失去焦点时触发 onfocus: 获得焦点时触发 阅读全文
posted @ 2020-09-14 16:50 积山海 阅读(963) 评论(0) 推荐(0) 编辑
摘要: //获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp var curWwwPath = window.document.location.href; //获取主机地址之后的目录,如: uimcardprj/share/meun.jsp 阅读全文
posted @ 2020-09-14 16:22 积山海 阅读(801) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> //处理键盘事件 禁止后退键(Backspace)密码或单行、多行文本框除外 function banBackSpace(e){ var ev = e || window.event;//获取event对象 var obj = ev.t 阅读全文
posted @ 2020-09-14 16:21 积山海 阅读(573) 评论(0) 推荐(0) 编辑