![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jquery
iteye_7303
这个作者很懒,什么都没留下…
展开
-
jquery 选择器,模糊匹配
按姓名匹配1,name前缀为aa的所有div的jquery对象[code="js"]$("div[name^='aa']");[/code]2,name后缀为aa的所有div的jquery对象[code="js"]$("div[name$='aa']");[/code]3,name中包含aa的所有div的jquery对象[code="js"]$("div.2013-06-09 13:51:16 · 481 阅读 · 0 评论 -
jquery 获取高度、宽度
[code="html"]获取高度或者宽度使用$("#content").height();$("#content").innerHeight();//元素内部区域高度,忽略padding、border$("#content").outerHeight();//忽略边框$("#content").outerHeight(true);//包含边框高度$("#content.2013-08-05 12:45:29 · 90 阅读 · 0 评论 -
jQuery光标定位到文字最后
光标定位到文字最后[code="java"]$("#saveContent").focus().text(content);[/code]原创 2014-11-06 11:55:14 · 831 阅读 · 1 评论