![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jquery
叶川飞流
学而时习之,不亦乐乎
展开
-
jquery slideUp,slideDown,slideToggle的坑,关于状态获取的解决办法
// 打开/关闭单个抽屉 $('.J_drawer').click(function () { $(this).parents('.attribute_item').find('.J_attribute_detail_list').slideToggle(500); setTimeout(function(){ let arr = []; ...原创 2021-01-19 09:30:09 · 558 阅读 · 0 评论 -
jquery获取孩子节点修改内容
// 清除因为留言板输入框导致无法隐藏头像下竖线的问题$(function () { let list_box = $('#J_content_list_box').children("li"); let len = $('#J_content_list_box').children("li").length; for(let i = 0; i<len;i++){ let child_len = $(list_box.get(i)).children().length; if(chil原创 2020-11-20 10:59:23 · 198 阅读 · 0 评论 -
jquery写法的纠正
let node = $('.J_contact').eq(index); console.log( node.addClass('intor')) //错误 console.log( $(node).addClass('intor')) //正确转节点需要加上$()来执行下一步的操作原创 2020-11-04 16:36:50 · 108 阅读 · 0 评论