87,907
社区成员
发帖
与我相关
我的任务
分享
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script src="jquery.min.js"></script>
<title>Document</title>
<style type="text/css">
a:hover{
color:#00FF00;
}
</style>
<script>
function test(){
$("#myA").removeClass("hover");
}
</script>
</head>
<body>
<a id="myA">aaaaa</a>
<input type="button" value="click" onclick="test()"/>
</body>
</html>
<style type="text/css">
a.xx:hover{
color:#00FF00;
}
</style>
<script>
function test(){
$("#myA").removeClass("xx");
}
</script>
</head>
<body>
<a id="myA" class="xx">aaaaa</a>
<input type="button" value="click" onclick="test()"/>