$(document).ready(function()
{
$("#a1").click(function(){
$("div:first").css("background-color","red");
});
$("tr:even").css("background-color","red");
$("tr:odd").css("background-color","blue");
$("div").click(function()
{
$(this).slideUp();
})
$("tr").click(function()
{
$(this).slideUp();
})
$("#a2").click(function()
{
//alert($(":checked").length);
newP.insertAfter("#a1");
})
var newP =$("<div>武广高速铁路即将通车!</div>");
})
jQuery入门
最新推荐文章于 2024-07-04 10:38:01 发布