jquery选择多个元素

news/2024/7/10 22:35:22 标签: jquery
<!DOCTYPE html>
<html>
<head>
    <title>sele1,sele2,seleN选择器</title>
    <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>
</head>
<body>
    <div class="red">选我吧!我是red</div>
    <div class="green">选我吧!我是green</div>
    <div class="blue">选我吧!我是blue</div>
</body>
<script type="text/javascript">
   $(".red,.green").html("hi,我们的样子很美哦!");
</script>
</html>

多个元素中间用,


I always like walking in the rain,so no one can sen me crying.



http://www.niftyadmin.cn/n/1695408.html

相关文章

JAVA7/8中的HashMap和ConrrentMap

转自 http://www.importnew.com/28263.html转载于:https://www.cnblogs.com/woniusky/p/10825779.html

ibatis iterate配置

SuppressWarnings("unchecked")public List<Asset> findUpAssetsByIds(List<Long> ids)throws PortalMSException{return (List<Asset>)this.getSqlMapClientTemplate().queryForList("Asset.findUpAssetsByIds", ids);} <!-- 查询上…

hadoop pig入门总结

在这里贴一个pig源码的分析&#xff0c;做pig很长时间没做笔记&#xff0c;不包含任何细节&#xff0c;以后有机会再说吧 http://blackproof.iteye.com/blog/1769219 hadoop pig入门总结 pig简介pig数据类型pig latin语法pig udf自定义pig derived衍生推荐书籍 programming pig…

实验报告

1、实验内容&#xff1a; 利用SQL语句“load data local infile”将“pet.txt”文本文件中的数据导入到mysql中 &#xff08;pet表在数据库menagerie中&#xff09; 2、实验过程及结果&#xff1a; 1)通过命令行连接mysql服务器&#xff1a; 2)将数据写入文本文件pet.txt,并保存…

类的补充(二)

类属性和实例属性 类属性&#xff1a;当类本身需要一个属性时&#xff0c;直接在class中定义属性&#xff0c;这种属性就是类属性&#xff0c;归类所有&#xff0c;但类的所有实例都可以访问到。 class Student(object):name Studentdef __init__(self):print(self.name)s St…

hadoop pig vertica

hadoop pig vertica是hadoop pig udf loader and storer的DB版&#xff0c;在github上开源&#xff0c;感谢感谢 本文就不贴代码了&#xff0c;附件里有源码&#xff0c;想了解的可以下载 先贴一张vertica的目录 其中verticaLoader&#xff0c;verticaStorer是vertica给出的接口…

软件密码学基础

在互联网上提交一些重要数据都是经过加密的 密码加密&#xff0c;同样的密码解 一种是对称加密 还一种是非对称加密 有些银行等也是用此技术。每方都有公钥和私钥

Tomcat配置加密连接器

可使用java自带的加密证书工具&#xff0c;密码我写的123456 会在指定路径administrator下出现一个文件 将他拷贝到tomcat中的conf目录下&#xff0c;然后再service.xml下配置。 复制上面tomcat注释掉的加上&#xff0c;文件位置和密码就行了 然后就可以访问了&#xff0c;注意…