jQuery

jQuery有4种选择器:

1.元素选择器$(document).ready(function(){

  $("button").click(functino(){

    $("p").hide();

});;

});

2.id选择器

$(document).ready(function(){

  $("button").click(function(){

    $("#id").hide();

  });

})

3.class选择器

$(document).ready(function(){

  $("button").click(function(){

    $(.class).hide();

  });

});

 

posted @ 2018-02-09 13:52  超重语言  阅读(79)  评论(0编辑  收藏  举报