初学 nodejs 极简单初始环境
webpack 的简单使用,引入了 react,加入了 js css 加载器,以及简单的生产环境和开发环境下的配置,初次接触 webpack 的学习
mysql-connector-net-6.8.3.msi
mysql-connector-net-6.8.3.msi
jquery1.7_20111120
jQuery 核心函数
jQuery([sel,[context]])
jQuery(html,[ownerDoc])
jQuery(callback)
jQuery.holdReady(hold)1.6+
jQuery 对象访问
each(callback)
size()
length
selector
context
get([index])
index([selector|element])
数据缓存
data([key],[value])
removeData([name|list])1.7*
$.data(element,[key],[value])
队列控制
queue(element,[queueName])
dequeue([queueName])
clearQueue([queueName])
插件机制
jQuery.fn.extend(object)
jQuery.extend(object)
多库共存
jQuery.noConflict([ex])
属性
属性
attr(name|pro|key,val|fn)
removeAttr(name)
prop(name|pro|key,val|fn)1.6+
removeProp(name)1.6+
CSS 类
addClass(class|fn)
removeClass([class|fn])
toggleClass(class|fn[,sw])
HTML代码/文本/值
html([val|fn])
text([val|fn])
val([val|fn|arr])
CSS
CSS
css(name|pro|[,val|fn])
位置
offset([coordinates])
position()
scrollTop([val])
scrollLeft([val])
尺寸
heigh([val|fn])
width([val|fn])
innerHeight()
innerWidth()
outerHeight([soptions])
outerWidth([options])
选择器
基本
#id
element
.class
*
selector1,selector2,selectorN
层级
ancestor descendant
parent > child
prev + next
prev ~ siblings
基本
:first
:last
:not(selector)
:even
:odd
:eq(index)
:gt(index)
:lt(index)
:header
:animated
:focus1.6+
内容
:contains(text)
:empty
:has(selector)
:parent
可见性
:hidden
:visible
属性
[attribute]
[attribute=value]
[attribute!=value]
[attribute^=value]
[attribute$=value]
[attribute*=value]
[attrSel1][attrSel2][attrSelN]
子元素
:nth-child
:first-child
:last-child
:only-child
表单
:input
:text
:password
:radio
:checkbox
:submit
:image
:reset
:button
:file
:hidden
表单对象属性
:enabled
:disabled
:checked
:selected
文档处理
内部插入
append(content|fn)
appendTo(content)
prepend(content|fn)
prependTo(content)
外部插入
after(content|fn)
before(content|fn)
insertAfter(content)
insertBefore(content)
包裹
wrap(html|ele|fn)
unwrap()
wrapall(html|ele)
wrapInner(html|ele|fn)
替换
replaceWith(content|fn)
replaceAll(selector)
删除
empty()
remove([expr])
detach([expr])
复制
clone([Even[,deepEven]])
筛选
过滤
eq(index|-index)
first()
last()
hasClass(class)
filter(expr|obj|ele|fn)
is(expr|obj|ele|fn)1.6*
map(callback)
has(expr|ele)
not(expr|ele|fn)
slice(start,[end])
查找
children([expr])
closest(expr,[con]|obj|ele)1.6*
find(expr|obj|ele)1.6*
next([expr])
nextall([expr])
nextUntil([exp|ele][,fil])1.6*
offsetParent()
parent([expr])
parents([expr])