慕容的工作随笔

慕容的工作随笔

记录学习和工作

$('> div', this)

$('> div', this)

$('> div', this):查找this下的所有div。 $('> span>span', this):查找this的子元素span下的子元素span。(this为li元素) eg:<li><spa…

$(#form).validate is not a function

$(#form).validate is not a function

2017-06-21 14:23:58 最近为项目写cms系统,在新增/编辑文章的页面,一些input诸如文章题目,作者等等需要验证是否已经填写,于是使用 jQuery .validate. js 来做这个工作,自己写了个验证的valida…