4

jquery 同时选择多个元素

 3 years ago
source link: https://www.80shihua.com/archives/595
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

jquery 同时选择多个元素

作者: dreamfly 分类: 未分类 发布时间: 2015-09-14 16:02

jquery中使用选择器的时候,可以使用,来选择多个元素

<div class='.style1'></div>

<div class='.style2'></div>
$(".style1,.style2").click(function(){
    
});

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

发表评论 取消回复

电子邮件地址不会被公开。 必填项已用*标注


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK