发现在js和jquery中设置a链接不可用的方式是不一样的。
在js中,要这样:
firstPage.removeAttribute("href");
firstPage.setAttribute("disabled", "disabled");
而在jquery中,要这样:
currentSelectReleaseBtn.removeAttr('href');
currentSelectReleaseBtn.attr("disabled", true);
发现在js和jquery中设置a链接不可用的方式是不一样的。
在js中,要这样:
firstPage.removeAttribute("href");
firstPage.setAttribute("disabled", "disabled");
而在jquery中,要这样:
currentSelectReleaseBtn.removeAttr('href');
currentSelectReleaseBtn.attr("disabled", true);