摘要:
总结:一、XSS攻击与防御二、CSRF攻击三、HTTP劫持与对策(页面被iframe嵌套、html广告代码插入script脚本)1.if (self != top) { top.location = location.href;}2.重写document.write()四、界面操作劫持(透明的关注微 阅读全文
posted @ 2018-07-24 11:54
River89397380
阅读(221)
评论(0)
推荐(0)
摘要:
(1)先在jQuery内部创建一个cache对象{}, 来保存缓存数据。 然后往需要进行缓存的DOM节点上扩展一个值为expando的属性,function Data() { Object.defineProperty( this.cache = {}, 0, { get: function() { 阅读全文
posted @ 2018-07-24 11:50
River89397380
阅读(557)
评论(0)
推荐(0)

浙公网安备 33010602011771号