![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JQuery
依御
这个作者很懒,什么都没留下…
展开
-
jquery模糊匹配ID
jQuery 模糊匹配ID 移除id以 "pop_" 开头的元素 $('div[id^=pop_]').remove();原创 2017-12-26 17:12:10 · 1265 阅读 · 0 评论 -
JQuery text限制输入
text限制输入 限制ID="weibo"的元素,超过140个字符,裁剪他的前140个字符。 $("#weibo").keyup(function(){ var len = $(this).val().length; if(len > 139){ $(this).val($(this).val().substring(0,140)); }原创 2017-12-26 17:20:55 · 399 阅读 · 0 评论 -
JQuery Java split()的使用 将字符串分割成字符串数组
split 用于分割裁剪报错信息 如果x="xxxxx",那么分开他们成为2个字符串数组 String xx=""; xx.split("\n\r\n");结果是{"xxx","xx"}原创 2017-12-26 17:29:22 · 5514 阅读 · 0 评论 -
Jq.gird 表格加载完后运行函数
jq.gird有自带函数 loadComplete: function () {//加载后运行函数 $("#errInfo tbody tr:not(:first) td:nth-child(4)").each(function () {//修改title显示 $(this).attr("title", $(this).text().replace(/_#br/g,原创 2018-01-02 18:17:58 · 1594 阅读 · 0 评论 -
Jquery 获取第一个子元素
获取元素 找到class="box-button"元素下的 div 的第一个 span 子元素,隐藏它。$(".box-button").find("div span").first().hide(); 找到 errInfo 标签下,tbody 标签里的 tr 标签(排除第一个) 的第四个 td 元素,并添加函数 $("#errInfo tbody tr:not(:first) td:n原创 2017-12-26 17:19:39 · 6784 阅读 · 0 评论