企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 返回值:Array<Element(s)>:input ### *V1.0*概述 匹配所有 input, textarea, select 和 button 元素 ### 示例 #### 描述: 查找所有的input元素,下面这些元素都会被匹配到。 ##### HTML 代码: ~~~ <form> <input type="button" value="Input Button"/> <input type="checkbox" /> <input type="file" /> <input type="hidden" /> <input type="image" /> <input type="password" /> <input type="radio" /> <input type="reset" /> <input type="submit" /> <input type="text" /> <select><option>Option</option></select> <textarea></textarea> <button>Button</button> </form> ~~~ ##### jQuery 代码: ~~~ $(":input") ~~~ ##### 结果: ~~~ [ <input type="button" value="Input Button"/>, <input type="checkbox" />, <input type="file" />, <input type="hidden" />, <input type="image" />, <input type="password" />, <input type="radio" />, <input type="reset" />, <input type="submit" />, <input type="text" />, <select><option>Option</option></select>, <textarea></textarea>, <button>Button</button>, ] ~~~