NBR-hugh / freecodecamp-practice

Practice everyday
0 stars 0 forks source link

$("button").addClass("animated bounce"); #5

Closed NBR-hugh closed 8 years ago

NBR-hugh commented 8 years ago

}); $(".well").addClass("animated shake");

为什么都是指向目标的名称,button不用加.而well需要在前面加.而成为.well?

NBR-hugh commented 8 years ago

因为指向元素种类不同,button是type,.well是class,还有一类是id:#name