摘要: 转自http://www.cnblogs.com/solan/archive/2012/07/23/CSharp00.html。对于基础巩固有很大的帮助。 阅读全文
posted @ 2015-10-14 18:15 x&y 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1.什么是CSRF攻击?CSRF(Cross-site request forgery),中文名称:跨站请求伪造,也被称为:one click attack/session riding,缩写为:CSRF/XSRF。简单来说,攻击者盗用了你的身份,以你的名义发送恶意请求。比如你登陆了网银(假定是A网... 阅读全文
posted @ 2015-10-14 17:55 x&y 阅读(480) 评论(0) 推荐(0) 编辑
摘要: iframe对应的div: 记录 点击加载页面到iframe。对应的js://iframe自适应高,onload会在iframe没加载完时就触发,所以要加上setTimeout,防止自适应高度出现为零的情况function autoHeight() { setTi... 阅读全文
posted @ 2015-10-14 17:08 x&y 阅读(199) 评论(0) 推荐(0) 编辑
摘要: /*正在加载*/function showLoading(elem) { var html = '' if (elem) { elem.after(html); } $("#over").css("display", "block"); $("#layou... 阅读全文
posted @ 2015-10-14 16:57 x&y 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 有如下div: 银行卡校验 调用一下方法弹出该div//遮罩层function popupDiv(div_id) { divid = div_id; var div_obj = $("#" + div_id); var windowWi... 阅读全文
posted @ 2015-10-14 16:52 x&y 阅读(440) 评论(0) 推荐(0) 编辑
摘要: $(function () { var elem; $("#mytable").on('click', 'td.CommTopic', function (event) { elem = $(this).closest('tr'); ... 阅读全文
posted @ 2015-10-14 16:47 x&y 阅读(525) 评论(0) 推荐(0) 编辑
摘要: if (!window.xxxx) window.xxxx= {};(function () { xxxx.console = { alert: function (msg) { GenerateHtml("alert", "提示", msg); ... 阅读全文
posted @ 2015-10-14 16:45 x&y 阅读(315) 评论(0) 推荐(0) 编辑