![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
DaleyZou
GitHub:https://github.com/daleyzou
展开
-
JQuery模拟点击页面上的所有a标签,触发onclick事件
注意:这种方法需要给所有的a标签加上id属性<script> $(function () { // 模拟点击页面上的所有a标签,触发onclick事件 $("a").each(function () { document.getElementById(this.id).click(); }) ...原创 2018-08-19 11:44:26 · 2817 阅读 · 0 评论 -
JQuery发起ajax请求,并在页面动态的添加元素
页面html代码:<li> <div class="coll-tit"><span class="coll-icon"><i class=&q原创 2018-08-30 19:52:01 · 1027 阅读 · 0 评论 -
使用JavaScript动态的绑定、解绑 a 标签的onclick事件,防止重复点击
页面上的 a 标签如下:<a class="more" style="cursor: pointer;" id="commentMore" onclick="javascript:selectMoreComment(this.id,2018);">查看更多</a>原创 2018-09-05 09:46:55 · 1557 阅读 · 0 评论