×

关于jquery的多个选择器的使用示例

作者:Terry2017.02.10来源:Web前端之家浏览:9711评论:0
关键词:JQueryJS
复制代码 代码如下:

<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#add,#edit").bind("click",function(){
$("p").slideToggle();
});
});
</script>
</head>
<body>
<p>This is a paragraph.</p>
<div id='add'>add</div>
<div id='edit'>edit</div>
</body>
</html>

您的支持是我们创作的动力!
温馨提示:本文作者系Terry ,经Web前端之家编辑修改或补充,转载请注明出处和本文链接:
https://jiangweishan.com/article/svg1486656000778.html

网友评论文明上网理性发言已有0人参与

发表评论: