05 2013 档案
摘要:获取ip信息api:淘宝:http://ip.taobao.com/service/getIpInfo.php?ip=8.8.8.8获取数据json数组格式,需要自己转换一下新浪:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=8.8.8.8网易有道:http://www.youdao.com/smartresult-xml/search.s?type=ip&q=8.8.8.8查询手机号码归属地api:http://www.youdao.com/smartresult-xml/search.s?
阅读全文
摘要:static Mutex myMutex = new Mutex(); static public bool writeLine(string instr,string fileName){ myMutex.WaitOne(); .......[做文件读写就行了] myMutex.ReleaseMutex();} private System.Object lockThis = new System.Object(); lock (lockThis) { // Access thread-sensitive resources. ...
阅读全文

浙公网安备 33010602011771号