您当前位置:编程帮手 > 知识 > 知识 > HTML和JS > jQuery > 内容
代码库
2015-02-25 23:03:26 访问(1662) 赞(0) 踩(0)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>show()和html()更改html的内容</title> <script type="text/javascript" language="javascript" src="<%=jQuery%>"></script> <script type="text/javascript" language="javascript"> function buttonClick() { $("a").addClass("test").show().html("slowx链接"); } </script> <style type="text/css"> .test { color: red; } </style> </head> <body> <a href="<%=strWebPhyPath%>">测试测试 </a> <br /><br /><br /> <a href="<%=strWebPhyPath%>" style="display: none;">测试测试 </a> <br /><br /><br /> <input type="button" value="点击测试效果" onclick="buttonClick()" /> </body> </html>
上一条:
下一条: