JavaScript:定义了网页的行为。
jQuery:是一个JavaScript库,简化了JS的编程,JS框架。
jQuery的基本语法:$(选择器).action();
$(document).ready(function(){}); 或 $(function(){});
$(“p”).hide(); $("#test").hide(); $(".test").hide();
$(this):当前HTML元素。
前端页面学习
最新推荐文章于 2024-06-10 14:45:48 发布