代码如下:
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);
// creates a function from the "js" string
var newclick = eval("(function(){"+js+"});");
// clears onclick then sets click
$("#anchor").attr('onclick', '').click(newclick);
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
posted @ 2010-02-27 10:00 dudu 阅读(2092) 评论(1) 编辑