使用juery时出现Object doesn't support this property or method的问题。
2010-03-08 18:37
585 查看
网页错误详细信息
用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; CIBA; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
时间戳: Mon, 8 Mar 2010 03:41:06 UTC
消息: Object doesn't support this property or method
行: 51
字符: 3
代码: 0
URI: http://localhost:8080/test.do
因为我在include的js当中有一段代码是
jQuery.noConflict();
var j$ = jQuery;
所以只要include这个js 下面需要用 j$()来调用
代码改成
var isValid = j$('#searchForm').validation({
就ok了。。。。
这个问题花了我不少时间啊。
希望对遇到这个问题的朋友有些帮助。。。。。。。。
用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; CIBA; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
时间戳: Mon, 8 Mar 2010 03:41:06 UTC
消息: Object doesn't support this property or method
行: 51
字符: 3
代码: 0
URI: http://localhost:8080/test.do
function checkForm() { var isValid = $('#searchForm').validation({ // 出现错误的行 fromMailAddr : [ {type : 'email', msg : '<lucy:message key="message.counsel.search.mailaddrError"/>'+' ['+$("#fromMailAddr").attr("text")+']', focus : true, empty : true }, {type : 'maxb', max: eval($("#fromMailAddr").attr("maxbyte")), msg : $("#fromMailAddr").attr("maxbyte") + '<lucy:message key="message.common.warning.input.maxb"/>'+' ['+$("#fromMailAddr").attr("text")+']', encode : 'utf-8',focus : true, empty:true} ] }); return isValid; }
因为我在include的js当中有一段代码是
jQuery.noConflict();
var j$ = jQuery;
所以只要include这个js 下面需要用 j$()来调用
代码改成
var isValid = j$('#searchForm').validation({
就ok了。。。。
这个问题花了我不少时间啊。
希望对遇到这个问题的朋友有些帮助。。。。。。。。
相关文章推荐
- js报错 Object doesn't support this property or method的原因分析
- PECMS上传图片时提示:Object doesn't support this property or method
- Autopostback提示“该对象不支持此属性或方法”(Object doesn't support this property or method)
- object doesn’t support this property or method
- jQuery ajax BUG:object doesn't support this property or method
- Why Object doesn't support this property or method in Javascript?
- Javascript 对象不支持此属性或方法,Object doesn’t support this property or method
- XYTipsWindow、jquery-1.4.4.min.js和Object doesn't support this property or method 解决
- jQuery on IE8, error: Object doesn't support this property or method
- ie6中 object doesn’t support this property or method
- SP13使用JS读取social feed 时的报错 SCRIPT438: Object doesn't support property or method 'get_context
- getElementById Object doesn't support this property or method
- jqgrid Object does not support this property or method
- Object doesn't support property or method 'die'
- Object doesn't support property or method 'validate' 错误
- 使用vs2012配置opencv编译出现问题:error C4996: 'fopen': This function or variable may be unsafe.
- quartz使用时遇到的问题Bean property 'xxx' is not writable or has an invalid setter method. Did you mean 'xxx
- MOSS爬网问题Error from SharePoint site: Data is Null. This method or property cannot be called on Null values
- 解决arraycollection赋值修改过程中,出现TypeError: Error #1009: Cannot access a property or method of a null obje
- 使用 ObjectInputStream 和ObjectOutputStream 经常出现的问题