摘要: /// /// 验证帮助类 /// public class ValidateHelper { //邮件正则表达式 private static Regex _emailregex = new Regex(@"^[a-z]([a-z0-9]*[-_]?[a-z0-9]+)*@([a-z0-9]*[-_]?[a-z0-9]+)+[\.][a-z]{2,3}([\.][a-z]{2})?$", R... 阅读全文
posted @ 2016-09-08 17:57 chaotech 阅读(6490) 评论(1) 推荐(1)
摘要: string filepath = @"D:\data.xlsx"; string strConn = "Provider=Microsoft.Ace.OleDb.12.0;Persist Security Info=False;" + "data source=" + filepath + ";Ex... 阅读全文
posted @ 2015-08-20 16:33 chaotech 阅读(131) 评论(0) 推荐(0)
摘要: 查询所有数据库占用磁盘空间大小的SQL语句: 复制代码代码如下: select TABLE_SCHEMA, concat(truncate(sum(data_length)/1024/1024,2),' MB') as data_size, concat(truncate(sum(index_l... 阅读全文
posted @ 2015-01-09 18:16 chaotech 阅读(278) 评论(0) 推荐(0)
摘要: import time,pymysqltry:#获取一个数据库连接,注意如果是UTF-8类型的,需要制定数据库conn=pymysql.connect(host='localhost',user='root',passwd='123456',db='test',port=3306,charset='... 阅读全文
posted @ 2015-01-08 16:41 chaotech 阅读(168) 评论(0) 推荐(0)
摘要: import urllib.requestresponse = urllib.request.urlopen('http://www.baidu.com/')html = response.read()z_data=html.decode('UTF-8')print(z_data) 阅读全文
posted @ 2015-01-08 16:38 chaotech 阅读(320) 评论(0) 推荐(0)
摘要: SELECT year(payment_date),sum(CASE month(payment_date) WHEN 01 THEN amount END) '一月份销售额',sum(CASE month(payment_date) WHEN 02 THEN amount END) '二月份销售额... 阅读全文
posted @ 2014-08-22 17:31 chaotech 阅读(941) 评论(0) 推荐(0)
摘要: 1 $("input[name='searchBean.con1']").keyup(function(){ //keyup事件处理 2 $(this).val($(this).val().replace(/\D|^0/g,'')); 3 }).bind("past... 阅读全文
posted @ 2014-07-20 11:57 chaotech 阅读(405) 评论(0) 推荐(0)
摘要: 在1.4.0之前(不包含1.4.0)无法使用多个绑定的,单个示例为:$('.clickme').live('click', function() { // Live handler called.});1.4.0-1.4.2开始支持了,实例如下:$('.hoverme').live('mouseo... 阅读全文
posted @ 2014-07-20 11:52 chaotech 阅读(359) 评论(0) 推荐(0)
摘要: 1. 查询手机:http://www.yodao.com/smartresult-xml/search.s?type=mobile&q=手机号码2. 查询IP:http://www.yodao.com/smartresult-xml/search.s?type=ip&q=IP地址3. 查询身份证:http://www.yodao.com/smartresult-xml/search.s?type=id&q=身份证号码快递查询接口 http://webservice.36wu.com/ExpressService.asmxip查询接口 http://webservice. 阅读全文
posted @ 2013-05-10 13:19 chaotech 阅读(326) 评论(0) 推荐(0)