安装wampserver时提示丢失MSVCR110.dll

对于32位系统,安装Wampserver 后启动的时候提示系统错误:MSVCR110.dll丢失。

于是卸载原来的WAMPSERVER 。安装vcredist_x86.exe,重新安装WAMPSERVER 2之后,问题解决了。

对于64位系统,则需要下载wampserver 64位版,并且安装vcredist_x64.exe

64位下载地址:http://www.onlinedown.net/soft/118187.htm

vcredist_x64.exe 和vcredist_x86.exe下载地址:http://www.microsoft.com/zh-cn/download/details.aspx?id=30679

jQuery禁用a标签和禁用按钮click点击的方法

禁用a标签方法一

1
2
3
4
5
6
7
8
9
10
11
12
$(document).ready(function () {
$("a").each(function () {
var textValue = $(this).html();
if (textValue == "XX概况" || textValue == "服务导航") {
$(this).css("cursor", "default");
$(this).attr('href', '#'); //修改<a>的 href属性值为 # 这样状态栏不会显示链接地址
$(this).click(function (event) {
event.preventDefault(); // 如果<a>定义了 target="_blank“ 需要这句来阻止打开新页面
});
}
});
});

Read More