小功能代码模块
文章平均质量分 78
zd_cat
这个作者很懒,什么都没留下…
展开
-
根据IP获取用户信息,sina js和纯真IP两种方式
采用纯真IP需要先下载数据库文件,然后采用代码方式读取public class QQWryLocator { private byte[] data; Regex regex = new Regex(@"(((/d{1,2})|(1/d{2})|(2[0-4]/d)|(25[0-5]))/.){3}((/d{1,2})|(1/d{2})|(2[0-4]/d)|(25[0-5]))"); long firstStartIpOffset;原创 2011-03-14 11:30:00 · 919 阅读 · 0 评论 -
中文转拼音
<br />using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace AppUtility{ /// <summary> /// 获得汉字的拼音 /// </summary> static public class PinyinHelper { static private Hash转载 2011-03-22 10:00:00 · 488 阅读 · 0 评论