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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值