在頁頭中添加如下腳本塊即可:
$(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“ 需要這句來阻止打開新頁面
});
}
});
});
