问题标签 [jquery-1.10]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - jquery子函数突然停止工作-可能折旧
好的,所以我在一个完全没有改变的网站上有代码。两天前我正在使用这个功能并且它有效,但是今天当我测试它时它就停止了工作。
出于某种原因,从.children()
选择器更改为.find()
修复它,这是我真正没想到的。
这是代码:
我知道.children()
只选择直接子级,所以这里的 html 说明了这一点:
当我将代码更改为此使用.find()
它时:
就像我说的那样,代码都没有改变,所以它停止工作很奇怪。我正在使用 jquery 版本 1.10.2 我想知道该.children()
功能是否已贬值,或者可能还有其他事情发生。
有谁知道这里发生了什么?我很担心,因为该.children()
功能在整个站点中被使用了数百次。谢谢
html - 在引导程序 3.3 和 jquery 1.1 中单击后,折叠按钮显示但不起作用
此代码不起作用,它显示 3 个水平条按钮,但单击后没有任何反应。引导程序-3.3 jquery-1.1
切换导航 CopyHere