2016年3月29日

摘要: http://www.cnblogs.com/TomXu/archive/2011/12/15/2288411.html 阅读全文
posted @ 2016-03-29 17:36 liujiwei0632 阅读(188) 评论(0) 推荐(0) 编辑
 
摘要: 因为有父, 子节点同在, 因为有监听事件和浏览器默认动作之分. 使用 JavaScript 时为了达到预期效果经常需要阻止事件和动作执行. 一般我们会用到三种方法, 分别是 stopPropagation(), preventDefault() 和 return false. 它们之间有什么区别, 阅读全文
posted @ 2016-03-29 17:29 liujiwei0632 阅读(143) 评论(0) 推荐(0) 编辑
 
摘要: input[type='checkbox']{ vertical-align:-2px; } input[type='radio']{ vertical-align:-6px; } 阅读全文
posted @ 2016-03-29 17:28 liujiwei0632 阅读(538) 评论(0) 推荐(0) 编辑
 
摘要: <input type="hidden" value="0" id="__EVENTTARGET" name="__EVENTTARGET" runat="server"/> <input type="hidden" value="0" id="__EVENTARGUMENT" name="__EV 阅读全文
posted @ 2016-03-29 17:28 liujiwei0632 阅读(167) 评论(0) 推荐(0) 编辑
 
摘要: 0.1+0.2 == 0.3 //false原来0.1+0.2变成:0.30000000000000004 0.1+0.2 == 0.3 //false原来0.1+0.2变成:0.30000000000000004 //自定义加法运算 functionaddNum (num1, num2) { va 阅读全文
posted @ 2016-03-29 17:27 liujiwei0632 阅读(222) 评论(0) 推荐(0) 编辑
 
摘要: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> 阅读全文
posted @ 2016-03-29 17:24 liujiwei0632 阅读(158) 评论(0) 推荐(0) 编辑
 
摘要: 1.使用file标签,后台获取file对象实现上传 2.使用webservice实现文件上传 3.使用FileReader 4.跨服务器上传文件要么用webservice,要么通过共享一个上传界面,或者共享文件夹,通过共享文件夹时候如果需要指定用户那么需要开启身份模拟功能(<identity imp 阅读全文
posted @ 2016-03-29 17:24 liujiwei0632 阅读(141) 评论(0) 推荐(0) 编辑
 
摘要: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="te 阅读全文
posted @ 2016-03-29 17:23 liujiwei0632 阅读(110) 评论(0) 推荐(0) 编辑
 
摘要: 注意不同域名的需要加上domain属性 HttpCookie cookie1 = HttpContext.Current.Request.Cookies["cookie1"]; if(cookie1 != null) { cookie1.Expires = DateTime.Now.AddDays( 阅读全文
posted @ 2016-03-29 17:22 liujiwei0632 阅读(120) 评论(0) 推荐(0) 编辑
 
摘要: 1.jsonp requestpage: function jsonpCallback(jsonp) { alert(jsonp.name); } function test() { var ele = document.createElement("script"); ele.src = "Web 阅读全文
posted @ 2016-03-29 17:20 liujiwei0632 阅读(204) 评论(0) 推荐(0) 编辑