use*_*r28 2 javascript internet-explorer-11 reactjs babel-polyfill
为了支持 IE11,我必须添加<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.4.4/polyfill.min.js"></script>
到我的 .aspx 文件中。
但这会在控制台中引发此错误。
Uncaught Sys.ParameterCountException: Sys.ParameterCountException: Parameter count mismatch.
如何在不删除 Babel-polyfill 脚本的情况下解决此错误?
如果我不为 babel-polyfill 添加该脚本,则不会抛出错误。
Warning Error:
Uncaught Sys.ParameterCountException: Sys.ParameterCountException: Parameter count mismatch.
at Function.Error$create [as create] (http://.../ScriptResource.axd?d=D9...:237:15)
at Function.Error$parameterCount [as parameterCount] (http://.../ScriptResource.axd?d=D9...:413:21)
at Function$_validateParameterCount [as _validateParameterCount] (http://.../ScriptResource.axd?d=D9...:118:23)
at Function$_validateParams [as _validateParams] (https://.../ScriptResource.axd?d=D9...:70:18)
at String$startsWith (http://.../ScriptResource.axd?d=D9...:491:22)
at String.startsWith (http://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.4.4/polyfill.min.js:1:81150)
at new Sys$UI$DomEvent (http://...:3986:16)
at browserHandler (http://...:4052:42)
Run Code Online (Sandbox Code Playgroud)
小智 5
尝试将 ScriptMode="Release" 添加到 ScriptManager。查看类似问题的 ZariffS 回复https://github.com/handsontable/handsontable/issues/4599#issuecomment-343506686