<script type="text/javascript"> //给网页中所有的<p>元素添加onclick事件 $("p").click(function(){ alert($(this).text()); //$(this).text("abc");//改变值 }); //使一个特定的表格隔行变色 //table:eq(0)表示找到第一个表格 $("table:eq(0) tr:even").css("background","red"); //$("table:gt(0) tr:odd").css("background","red"); </script>
ajax学习(2)
猜你喜欢
转载自www.cnblogs.com/liaoxiaolao/p/9840339.html
今日推荐
周排行