摘要:
1. 如果在用jQuery.Ajax()时,想屏蔽掉AjaxStart等事件,可以在参数中加global:false. 也可以用jQuery.unbind("AjaxStart.xxxx")来暂时disable掉,这里有一个概念就是事件命名空间。例如 $("button").bind("click.mybutton", function(){}) ; 会将函数挂在click事件处理链中,那么如果想将此事件处理函数从连中去掉,又不想将整个链删除,就可以用命名空间。$("button").unbind("cl 阅读全文
posted @ 2013-04-18 22:11
烟雨客
阅读(127)
评论(0)
推荐(0)
摘要:
当从网上找到这段代码的时候,在本地试验怎么也实现不了,只要错在了style的a:hover + div这一句。后来发现是因为没有 写上这一句:<!DOCTYPE HTML>。完整代码如下:<!DOCTYPE HTML><html><head><script type="text/javascript" src="scripts/jquery-1.7.js"></script><style>.box { display:none; position: fixed; top: 阅读全文
posted @ 2013-04-14 21:07
烟雨客
阅读(565)
评论(0)
推荐(0)
摘要:
今天试着写了一个IHttpModule并按以前的方式在web.config下的system.web下声明:<configuration> <system.web> <httpModules> <add name="HelloWorldModule" type="HelloWorldModule"/> </httpModules> </system.web></configuration>事践显示这种声明注册方法在IIS7.0下,即win7下是不work的。必须按如下声明: 阅读全文
posted @ 2013-04-06 17:01
烟雨客
阅读(1312)
评论(0)
推荐(0)
浙公网安备 33010602011771号