![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jQuery
OrangQceee
在围绕远方众星的运行中寻得欢乐
展开
-
jQuery中find()和children()的区别
1:children及find方法都用是用来获得element的子elements的,两者都不会返回 text node,就像大多数的jQuery方法一样。 2:children方法获得的仅仅是元素一下级的子元素,即:immediate children。 3:find方法获得所有下级元素,即:descendants of these elements in the DOM tree 4:chil...转载 2018-11-30 09:22:27 · 449 阅读 · 0 评论 -
tagsinput和typeahead使用指北
项目要实现一个功能,就是像添加关键字一样添加人员,同时要做到预输入查询。于是就使用了bootstrap-tagsinput。 官方的example:Bootstrap Tags Input 然后我参考的是其中的typeahead案例, typeahead的官方example:typeahead 下面是我自己的代码 首先是css和js的引用 <link href='${ctxStatic}/...原创 2019-04-11 15:04:29 · 1352 阅读 · 0 评论