啥也不说直接上代码function triggerFn(obj,onevent){ var
events; // 事件触发 if(ie){ //调用document对象的createEventObject方法得到一个event的对象实例 events
=...
分类:
其他好文 时间:
2014-05-08 18:56:47
阅读次数:
299
攻击XSS漏洞的一种有效载荷,就是使用嵌入式JavaScript访问document.cookie属性,截获受害者的会话令牌。HttpOnly
cookie是某些浏览器所支持的一种防御机制,许多应用程序使用它防止这种攻击有效载荷执行。当应用程序设定一个cookie时,它可能在Set-Cookie消息...
分类:
其他好文 时间:
2014-05-08 14:30:50
阅读次数:
266
一:框架挂马二:js文件挂马首先将以下代码document.write("");保存为xxx.js,则JS挂马代码为三:js变形加密muma.txt可改成任意后缀四:body挂马五:隐蔽挂马top.document.body.innerHTML
= top.document.body.innerHT...
分类:
Web程序 时间:
2014-05-08 14:21:55
阅读次数:
362
New Document button1 button2
分类:
Web程序 时间:
2014-05-07 16:46:53
阅读次数:
370
最近项目遇到了问题,有个asp.net web程序只能在IE7 运行,现在xp都淘汰了,大家都用IE8-IE11,因此这个web app也需要升级 适应所有IE版本。照成IE版本不兼容的问题主要来致document.createElement方法的调用,如:
function addStyleNo(value, cannotDel) {
if (!value) {
v...
分类:
编程语言 时间:
2014-05-07 15:14:45
阅读次数:
497
SVN :This XML file does not appear to have any
style information associated with it. The document tree is shown
below.地址输入错误。尼玛。。。
分类:
移动开发 时间:
2014-05-07 15:01:54
阅读次数:
1113
最近项目遇到了问题,有个asp.net web程序只能在IE7
运行,现在xp都淘汰了,大家都用IE8-IE11,因此这个web app也需要升级
适应所有IE版本。照成IE版本不兼容的问题主要来致document.createElement方法的调用,如:function addStyleNo(v...
分类:
编程语言 时间:
2014-05-07 14:34:37
阅读次数:
375
题目来源:HDU 1542 Atlantis
题意:给你一些矩形(左下角和右上角)求面积
思路:参考here这个超赞的 一看就懂了
#include
#include
#include
#include
using namespace std;
const int maxn = 210;
struct node
{
double l, r, h;
int s, val;
nod...
分类:
其他好文 时间:
2014-05-07 08:59:09
阅读次数:
395
OJ题目:click here~~
题目分析:1……n按顺序围成一个圈,1与n相邻。交换相邻两个数算1步。至少需要多少步,得到一个逆方向的1……n的圈。
分两半,使用冒泡排序,排成逆序的交换次数之和即为结果。
AC_CODE
int f(int n){
return n*(n - 1)/2;
}
int main(){
int n , t;
cin >> t;
...
分类:
其他好文 时间:
2014-05-06 23:15:55
阅读次数:
301
G++ 2.91.57,cygnus\cygwin-b20\include\g++\stl_queue.h 完整列表
/*
*
* Copyright (c) 1994
* Hewlett-Packard Company
*
* Permission to use, copy, modify, distribute and sell this software
* and its document...
分类:
其他好文 时间:
2014-05-06 22:22:55
阅读次数:
402