Jquery的使用

JQuery选择器

  • $(this).hide()- 隐藏当前元素
  • $("p").hide()- 隐藏所有段落
  • $(".test").hide()- 隐藏所有class = "test" 的所有元素
  • $("#test").hide()- 隐藏所有 id = "test" 的元素
原文地址:https://www.cnblogs.com/canceler/p/5239947.html