第一个 submitHandler: function() { 这个是JSON格式的方式创建一个函数第二个,下边是API解释size() jQuery 对象中元素的个数。 这个函数的返回值与 jQuery 对象的'length' 属性一致。--------------------------------------------------------------------------------The number of elements in the jQuery object. This returns the same number as the 'length' property of the jQuery object. 返回值 Number示例 计算文档中所有图片数量 HTML 代码:<img src="test1.jpg"/> <img src="test2.jpg"/> jQuery 代码:$("img").size(); 结果:2
submitHandler: function() {
这个是JSON格式的方式创建一个函数第二个,下边是API解释size()
jQuery 对象中元素的个数。
这个函数的返回值与 jQuery 对象的'length' 属性一致。--------------------------------------------------------------------------------The number of elements in the jQuery object.
This returns the same number as the 'length' property of the jQuery object.
返回值
Number示例
计算文档中所有图片数量 HTML 代码:<img src="test1.jpg"/> <img src="test2.jpg"/>
jQuery 代码:$("img").size();
结果:2
第三个$.blockUI 这个是JQuery的一个插件,JQuery插件开发完以后可以以这种方式调用,具体的功能要看你开发成什么样了。
$("form.validate")是jquery在获得什么呢?
我猜测是$("form.validate")是取得是validate类型的form
我不确定,没在公司,电脑里没有api .看楼下了
前面有一个注册页面调用了该jquery
其中有:
<html:form action="/user?method=regUser" styleClass="validate" focus="loginName">
</html:form>您指的是一种什么情况呢?还不明白,在form下有什么样的节点?请解释一下,谢谢
<input class="validate"/>
<input class="validate"/>
</form>手里没有api 我只能设想大概是这样,你翻翻api吧。
<html:form action="/user?method=regUser" styleClass="validate" focus="loginName">
</html:form>
里面有validate,页面中其他地方没有再出现validate了。
<html:form action="/user?method=loginUI" styleClass="validate" focus="loginName">
</html:form>在commons.jspf中将$("form").size() >0改为:$("form").size() ==2
能够正确运行,改成$("form").size() >2就错了。
这方面的内容,怎么查api呢?请教了
1号: 82085373
2号: 55191814
3号: 89238748
4号: 56418364
5号: 157181129
6号: 74671714请勿重复加群......