摘要:
public bool IsExitCityByIP(string ip,out string city) { string[] ips = ip.Split('.'); double ipNum = Convert.ToDouble(ips[0]) * 16777216 + Convert.ToDouble(ips[1]) * 65536 + Convert.ToDouble(ips[2]) * 256 + Convert.ToDouble(ips[3]); ... 阅读全文
摘要:
#region 方法一 判断网址输入格式 if (txtUrl.Text .Length >=7 && txtUrl.Text.Substring(0, 7) == "http://") { labUrl.Visible = false ; } else { labUrl.Visible = true; labUrl.Text = "格式为:http://..."; ... 阅读全文