摘要:        
1 function browserIsIE(){ 2 if (window.ActiveXObject) 3 return true; 4 else{ 5 var u_agent = navigator.userAgent.toLowerCase(); 6 return (u_agent.inde...    阅读全文
        
            posted @ 2016-12-29 14:14
wuln
阅读(145)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
1、去掉字符串前后空格 2、判断字符串是否以一个指定的字符串结尾    阅读全文
        
            posted @ 2016-12-29 13:57
wuln
阅读(209)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
1、根据xml格式的string生成xml文件并保存到本地    阅读全文
        
            posted @ 2016-12-29 11:00
wuln
阅读(153)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
1 /// 2 /// 特殊字符转义 3 /// 4 /// 5 /// 6 public string XmlCharacterEscaping(string xml) 7 { 8 string xmlNew = xml; 9 if (xml.IndexOf("&") != -1) 10 { 11 xmlNew = xml.Re...    阅读全文
        
            posted @ 2016-12-29 10:45
wuln
阅读(614)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
1 /// 2 /// 获取本机公网IP 3 /// 4 /// 5 public static string GetIP_Lan() 6 { 7 string tempip = "127.0.0.1"; 8 try 9 { 10 WebRequest wr = WebRequest.Create("http://www.ip138...    阅读全文
        
            posted @ 2016-12-29 10:31
wuln
阅读(421)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
JSON(JavaScript Object Notation)——JavaScript对象表示法,是JavaScript用来处理数据的一种格式,大部分是用来处理JavaScript和web服务器端之间的数据交换,把后台web服务器的数据传递到前台,然后使用JavaScript进行处理,例如ajax    阅读全文
        
            posted @ 2016-12-29 10:25
wuln
阅读(32988)
评论(0)
推荐(1)
        
        
            
        
        
摘要:        
System.Net.WebClient.DownloadFile(Uri address, String fileName) namespace:System.Net 参数: address:The URI from which to download data.fileName:The name    阅读全文
        
            posted @ 2016-12-29 09:18
wuln
阅读(1318)
评论(0)
推荐(0)
        
        
                    
                
浙公网安备 33010602011771号