您目前尚未登陆,请选择【登陆】或【注册
首页->控件插件->多功能文本框控件源码及示例>>TextControl/txtScript.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:多功能文本框控件源码及示例
当前文件:文件类型 TextControl/TextControl/txtScript.cs打开代码结构图
普通视图
		            
1using System; 2using System.Collections.Generic; 3using System.Text; 4 5namespace BaseText 6{ 7 public static class txtScript 8 { 9 public static string ChineseLanguage = @"/^[\u4E00-\u9FA5]*$/"; 10 public static string Lower = @"/^[a-z]*$/"; 11 public static string number = @"/^[0-9]*$/"; 12 public static string phone = @"/^\d{1,4}([-\/](\d{1,8}?)?)?$/"; 13 public static string IP = @"/^\d{1,3}([.\/](\d{1,3}([.\/](\d{1,3}([.\/](\d{1,3}([.\/](\d{1,3}([.\/](\d{1,3}?)?)?)?)?)?)?)?)?)?)?$/"; 14 public static string Upper = @"/^[A-Z]*$/"; 15 public static string Onkeypress = @"return regInput(this, {0},String.fromCharCode(event.keyCode))"; 16 public static string Onpaste = @"return regInput(this,{0},window.clipboardData.getData('Text'))"; 17 public static string ondrop = @"return regInput(this,{0},event.dataTransfer.getData('Text'))"; 18 public static string onfocusCloseInput = "this.style.imeMode='disabled'"; 19 } 20} 21
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:多功能文本框控件源码及示例
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号