找了很久,百度的答案真的让人无语,,,最后发现跟其他的设置css样式一样的去设置就可以了。
$("a").css("text-decoration", "none"); //去掉下划线
$("a").css("text-decoration", "underline"); //加上下划线