jQuery
siege
这个作者很懒,什么都没留下…
展开
-
jQuery中的:input选择器
jQuery中的:input选择器jQuery中的:input选择器包括input, textarea, select 和 button这些标签。<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css">原创 2015-08-23 15:05:44 · 1747 阅读 · 0 评论 -
jQuery中的append()和prepend(),after()和before()的区别
Jquery中的append()和preappend(),after()和before()的区别append()和prepend()假设<div class='a'> //<---you want div c to append in this <div class='b'>b</div></div>使用$('.a').append($('.c'));则会这样:<div class='a'>原创 2015-08-18 00:15:13 · 6992 阅读 · 0 评论 -
jQuery中的closest()和parents()的区别
jQuery中的closest()和parents()的区别jQuery中closest()和parents()的作用非常相似,都是向上寻找符合选择器条件的元素,但是他们之间有一些细微的差别,官网也给出了说明: .closest() .parents() Begins with the current element Begins with the parent element T原创 2015-08-20 23:13:58 · 1921 阅读 · 0 评论 -
jQuery中focusin()和focus()、find()和children()的区别
focus()和focusin()、focus()和children()的区别focus()和focusin()focus()和focusin()的区别在于focusin()支持事件的冒泡,下面举例说明:<!doctype html><html lang="en"><head> <meta charset="utf-8"> <title>focusin demo</title> <s原创 2015-08-23 11:46:42 · 1223 阅读 · 0 评论