Javascript 对象不支持此属性或方法,Object doesn’t support this property or method

中文

Microsoft 对VBscript出现这种错误的解释

Visual Basic 参考:错误消息. 对象不支持此属性或方法(Visual Basic). 为此自动化对象指定的方法或属性不存在

 

 

English

 

Object doesn't support this property or method (Visual Basic) 

You specified a method or property that does not exist for this automation object.

 

Ok, I was coding some javascript for an intranet application and I kept getting this error: “Object doesn’t support this property or method”.  I was just using a button with an onclick event to call a function to close a record through a AJAX call. I reduced the function down to just an alert(”hello”) and still was getting this error.

Stepping forward to the issue, I was calling a function, “closeRec(var1,var2)” and had a form with an ‘id=”closeRec”.  For some reason, maybe a good reason, in IE this causes this very generic ERROR.  This is a case sensitive issue as ‘id=”CloseRec” does not initiate the error.

If you have a good explanation  for this error “Object doesn’t support this property or method” in IE please respond. (I Didn’t try FireFox)

 

 

Related Articles

http://classicasp.aspfaq.com/general/why-do-i-get-object-doesn-t-support-this-property-or-method-errors.html

http://www.javascriptjunkie.com/?p=12

转载于:https://www.cnblogs.com/kaixin110/archive/2008/05/24/1206338.html

你可能感兴趣的:(Javascript 对象不支持此属性或方法,Object doesn’t support this property or method)