dom方法
dom单个元素,无null。doms多个元素,无[]。
remove 删除obj单个或arr多个。
eq 获取n号元素。
find 选择器获取子孙元素。
child子元素AB
第1个元素
xpath下任意元素
xxpath选择器元素
删除元素
添加样式表
clas链
class效果
add添加
remove移除
toggle切换
has存在
attr方法
get,支持stirng和json
有属性
属性没有值
无属性
set,支持string和json。null为删除
写str
写obj
写arr
写bool
写int
删除属性
读取
hasattr
值null
值0
值1
值true
值false
值空
无
css方法
get css
定义style,获取bgcolor
未定义style,获取bgcolor
set css
CSS样式
计算cal.color
获取get.color
设置css单值
设置css多值
cal css
计算全部css
计算bgcolor
val方法
val 设置/获取value,支持ciycmp对象setvalue/getvalue
设置
获取
设置
获取
html/text方法
outhtml/html 设置/获取html。text 设置/获取文本。
p1
p2
p3
html覆盖内部
outhtml覆盖自身
text覆盖
html替换内部
outhtml替换自身
text覆盖
html方法
outhtml/html 设置/获取html。prepend/append 子元素。before/after 兄弟元素
p1
p2
p3
prepend内部插入
append内部添加
before上插入
after下添加
html覆盖内部
outhtml覆盖自身
prepend内部插入
append内部添加
before上插入
after下添加
html替换内部
outhtml替换自身
prev/next方法
获取n个
n1
n2
n3
n4
n5
n6
n7
prev多个
prev 2个
prev对象
无上下dom
next多个
next 2个
next对象
无上下dom
on/one/off方法
rect方法
width:100px
height:100px
content-box
本框架不用
wh:100px
border:3px
padding:5px
margin:7px
border-box
aniin/aniout动画方法