摘要: 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)
摘要: 高版本Chrome不支持window.showModalDialog,可用window.open代替 阅读全文
posted @ 2016-12-28 16:55 wuln 阅读(182) 评论(0) 推荐(0)
摘要: 1、Ext.Msg.alert(String title, String msg, [Function fn], [Object scope]) 显示一个标准的带有一个“确定”按钮的只读消息框(类似于基本的JavaScript警告提示)。 参数: title : 标题 msg : 提示消息 fn : 阅读全文
posted @ 2016-12-28 15:20 wuln 阅读(849) 评论(0) 推荐(0)
摘要: 使用 XMLHttpRequest 对象的 open() 和 send() 方法: 方法 描述 open(method,url,async) 规定请求的类型、URL 以及是否异步处理请求。 method:请求的类型;GET 或 POST url:文件在服务器上的位置 async:true(异步)或 阅读全文
posted @ 2016-12-27 15:53 wuln 阅读(197) 评论(0) 推荐(0)