4 function disableLink(link) {5 //设置href属性6 link.href = "javascript:void(0);";7 //设置disabled属性8 link.setAttribute("disabled", "disabled");9 }