jQuery event.data 属性 jQuery 事件方法 实例 对每个 <p> 元素返回通过 on() 方法传递的数据: $("p").each(function(i){ $(this).on("click",{x:i},function(event){ alert("The " + $(this).index() + ". paragraph has data: " + event.data.x); }); }); 尝试一下 » 定义...
https://www.w3cschool.cn/jquery/event-data.htmljQuery :radio 选择器 jQuery 选择器 实例 选取所有带有 type="radio" 的 <input> 元素: $(":radio") 尝试一下 » 定义和用法 :radio 选择器选取带有 type=radio 的 input 元素。 语法 $(":radio") jQuery 选择器
https://www.w3cschool.cn/jquery/sel-input-radio.htmljQuery :checked 选择器 jQuery 选择器 实例 选取所有被选中的元素(复选框或单选按钮): $(":checked") 尝试一下 » 定义和用法 :checked 选择器选取所有选中的复选框或单选按钮。 语法 $(":checked") jQuery 选择器
https://www.w3cschool.cn/jquery/sel-input-checked.htmljQuery event.currentTarget 属性 jQuery 事件方法 实例 event.currentTarget 通常等于 this: $("h1,h2,p").click(function(event){ alert(event.currentTarget === this);}); 尝试一下 定义和用法 event.currentTarget 属性是在事件冒泡阶段内的当前 DOM 元素,通常等...
https://www.w3cschool.cn/jquery/jq-event-currenttarget.htmljQuery :password 选择器 jQuery 选择器 实例 选取带有 type="password" 的 <input> 元素: $(":password") 尝试一下 » 定义和用法 :password 选择器选取带有 type=password 的 input 元素。 语法 $(":password") jQuery 选择器
https://www.w3cschool.cn/jquery/sel-input-password.htmljQuery :selected 选择器 jQuery 选择器 实例 选取下拉列表中预先选定的项: $(":selected") 尝试一下 » 定义和用法 :selected 选择器选取预先选定的选项元素。 注释:该选择器不适用于复选框或单选按钮。请使用 :checked 选择器代替...
https://www.w3cschool.cn/jquery/sel-input-selected.htmljQuery :text 选择器 jQuery 选择器 实例 选取带有 type="text" 的 <input> 元素: $(":text") 尝试一下 » 定义和用法 :text 选择器选取带有 type=text 的 input 元素。 语法 $(":text") jQuery 选择器
https://www.w3cschool.cn/jquery/sel-input-text.htmljQuery :disabled 选择器 jQuery 选择器 实例 选取所有禁用的表单元素: $(":disabled") 尝试一下 » 定义和用法 :disabled 选择器选取所有禁用的表单元素。 语法 $(":disabled") jQuery 选择器
https://www.w3cschool.cn/jquery/sel-input-disabled.htmljQuery :input 选择器 jQuery 选择器 实例 选取所有 input 元素: $(":input") 尝试一下 » 定义和用法 :input 选择器选取表单元素。 该选择器同样适用于 button 元素。 语法 $(":input") jQuery 选择器
https://www.w3cschool.cn/jquery/sel-input.htmljQuery :enabled 选择器 jQuery 选择器 实例 选取所有启用的表单元素: $(":enabled") 尝试一下 » 定义和用法 :enabled 选择器选取所有启用的表单元素。 语法 $(":enabled") jQuery 选择器
https://www.w3cschool.cn/jquery/sel-input-enabled.html抱歉,暂时没有相关的微课
w3cschool 建议您:
抱歉,暂时没有相关的视频课程
w3cschool 建议您:
抱歉,暂时没有相关的教程
w3cschool 建议您:
jQuery event.data 属性 jQuery 事件方法 实例 对每个 <p> 元素返回通过 on() 方法传递的数据: $("p").each(function(i){ $(this).on("click",{x:i},function(event){ alert("The " + $(this).index() + ". paragraph has data: " + event.data.x); }); }); 尝试一下 » 定义...
https://www.w3cschool.cn/jquery/event-data.htmljQuery :radio 选择器 jQuery 选择器 实例 选取所有带有 type="radio" 的 <input> 元素: $(":radio") 尝试一下 » 定义和用法 :radio 选择器选取带有 type=radio 的 input 元素。 语法 $(":radio") jQuery 选择器
https://www.w3cschool.cn/jquery/sel-input-radio.htmljQuery :checked 选择器 jQuery 选择器 实例 选取所有被选中的元素(复选框或单选按钮): $(":checked") 尝试一下 » 定义和用法 :checked 选择器选取所有选中的复选框或单选按钮。 语法 $(":checked") jQuery 选择器
https://www.w3cschool.cn/jquery/sel-input-checked.htmljQuery event.currentTarget 属性 jQuery 事件方法 实例 event.currentTarget 通常等于 this: $("h1,h2,p").click(function(event){ alert(event.currentTarget === this);}); 尝试一下 定义和用法 event.currentTarget 属性是在事件冒泡阶段内的当前 DOM 元素,通常等...
https://www.w3cschool.cn/jquery/jq-event-currenttarget.htmljQuery :password 选择器 jQuery 选择器 实例 选取带有 type="password" 的 <input> 元素: $(":password") 尝试一下 » 定义和用法 :password 选择器选取带有 type=password 的 input 元素。 语法 $(":password") jQuery 选择器
https://www.w3cschool.cn/jquery/sel-input-password.htmljQuery :selected 选择器 jQuery 选择器 实例 选取下拉列表中预先选定的项: $(":selected") 尝试一下 » 定义和用法 :selected 选择器选取预先选定的选项元素。 注释:该选择器不适用于复选框或单选按钮。请使用 :checked 选择器代替...
https://www.w3cschool.cn/jquery/sel-input-selected.htmljQuery :text 选择器 jQuery 选择器 实例 选取带有 type="text" 的 <input> 元素: $(":text") 尝试一下 » 定义和用法 :text 选择器选取带有 type=text 的 input 元素。 语法 $(":text") jQuery 选择器
https://www.w3cschool.cn/jquery/sel-input-text.htmljQuery :disabled 选择器 jQuery 选择器 实例 选取所有禁用的表单元素: $(":disabled") 尝试一下 » 定义和用法 :disabled 选择器选取所有禁用的表单元素。 语法 $(":disabled") jQuery 选择器
https://www.w3cschool.cn/jquery/sel-input-disabled.htmljQuery :input 选择器 jQuery 选择器 实例 选取所有 input 元素: $(":input") 尝试一下 » 定义和用法 :input 选择器选取表单元素。 该选择器同样适用于 button 元素。 语法 $(":input") jQuery 选择器
https://www.w3cschool.cn/jquery/sel-input.htmljQuery :enabled 选择器 jQuery 选择器 实例 选取所有启用的表单元素: $(":enabled") 尝试一下 » 定义和用法 :enabled 选择器选取所有启用的表单元素。 语法 $(":enabled") jQuery 选择器
https://www.w3cschool.cn/jquery/sel-input-enabled.html