方法1:微软推荐服务器需安装Excel型依赖:软件:Office Excel 2007-2013引用:Microsoft Office 14.0 Object Library1-1.数据准备 1 //Excel文件名称 2 string ExcelName = System.DateTime...
public class StringTest { /** * 怎么截取24,122,怎么截取某个特定字符前面的数据,且特定字符后面的有规律 * @param args */ public static void main(String[] args) { // TODO Auto-gene...
分类:
其他好文 时间:
2015-05-05 12:31:06
阅读次数:
155
public class Test { public static void main(String[] args) { // 正常情况下,对这个0,tp中储的是其对应的ASCII码48 char tp = '0'; System.out.println((int) tp); // 加了\表示后面的...
分类:
编程语言 时间:
2015-05-05 12:27:58
阅读次数:
142
//淘宝IP地址库http://ip.taobao.com/accurancy.php string url = "http://ip.taobao.com/service/getIpInfo.php?ip=122.224.94.210"; string...
分类:
其他好文 时间:
2015-05-05 12:25:33
阅读次数:
177
1.根据 url 和 encoding 获取当前url页面的 html 源代码 public static string GetHtml(string url, Encoding encoding) { HttpWebRequest request = null...
分类:
Web程序 时间:
2015-05-05 12:25:22
阅读次数:
137
序列化:序列化复杂类public static string Serializer(T obj) { MemoryStream Stream = new MemoryStream(); XmlSerializer xml = new XmlS...
分类:
其他好文 时间:
2015-05-05 12:16:13
阅读次数:
135
---------------面向对象编程简介---------------UML表示方法: 1)方框上中下三分 2)上框写类名 3)中框写属性和字段,例如:+Description:string+公共成员-私有成员 Description成员名 string成员类型 4)下框写方法,例如:...
正则超级链接 string pattenhref = "])*>"; string pattenhrefend = "])*>"; Regex rg = new Regex(pattenhref, RegexO...
分类:
其他好文 时间:
2015-05-05 12:14:31
阅读次数:
187
https://leetcode.com/problems/valid-palindrome/ Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring...
分类:
其他好文 时间:
2015-05-05 12:13:38
阅读次数:
94
jquery中的ajax方法参数总是记不住,这里记录一下。1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览...
分类:
Web程序 时间:
2015-05-05 12:12:10
阅读次数:
111