代码如下:

var js = "alert('B:' + this.id); return false;";
// creates a function from the "js" string
var newclick = eval("(function(){"+js+"});");
// clears onclick then sets click
$("#anchor").attr('onclick''').click(newclick);

来源:changing the value of onclick with or without jQuery

posted @ 2010-02-27 10:05 dudu 阅读(6002) 评论(0) 编辑

1. 在注册表HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters中新建dword值 EnableErrorLogging,"EnableErrorLogging"=dword:00000000 。

2. 在命令行中分别运行以下命令运行:

  net stop http

  net start http

  iisreset


参考文档:Error logging in HTTP API

posted @ 2010-02-27 10:00 dudu 阅读(2092) 评论(1) 编辑