问题描述
我的应用程序中有一个removeFilter()javascript函数,由于某种原因它没有被调用,并且仅在IE9中引发以下错误.我最初认为这是我的调用代码中的一个错字,但是当我简单地将名称更改为removeFilter()以外的其他名称(例如,applyFilter())时,该功能似乎运行良好.我简单地尝试在函数中打印一些警报,但未调用该函数.请注意,该功能可以在其他IE 7,IE8中正常工作.
I have a removeFilter() javascript function in my application and it is not getting invoked for some reason and throwing the following error ONLY in IE9. I initially thought it be some typo in my invocation code but when i simple change the name to something other than removeFilter() (say for example applyFilter()) the function seems to be working fine. I simple tried printing some alerts within the function and the function was not invoked. Please note the function works fine in other IE 7, IE8.
错误:SCRIPT65535:参数不是可选的
ERRROR: SCRIPT65535: Argument not optional
推荐答案
请参见 http://www.jabcreations.com/blog/internet-explorer-9 -显然removeFilter(和addFilter)是IE 9中保留功能的列表之一.
See http://www.jabcreations.com/blog/internet-explorer-9 -- evidently removeFilter (and addFilter) are among a list of reserved functions in IE 9.
这篇关于removeFilter()函数在IE9中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!