jquery - jquery history js无法读取未定义的属性'msie'
问题描述
我将 jquery 从 1.9.2 升级到 v3.5.1,并使用了 migrate v 3.3.2。当我现在填充这个时,我从我的 jquery 历史 js 页面中得到一个错误。它把它扔在下面的代码行上
var self = $.extend({}, implementations.base);
if ($.browser.msie && ($.browser.version < 8 || document.documentMode < 8)) { // errors out here
self.type = 'iframeTimer';
} else if ("onhashchange" in window) {
self.type = 'hashchangeEvent';
} else {
self.type = 'timer';
}
$.extend(self, implementations[self.type]);
$.history = self;
我已经检查并且不再支持 jquery 历史记录,但我需要使用我目前拥有的版本,因为它已针对网站进行了修改。我怎样才能解决这个问题?
解决方案
推荐阅读
- asp.net - 使用必填字段验证器联系资源文件值
- node.js - Npm install 与本地依赖和 package-lock.json 抛出错误
- unit-testing - PowerMockito whenNew thenReturn 不工作
- .net - 带有 .net 框架的 gRPC 的 PEM 文件
- excel - 更改组中的复选框表单控件
- swift - 如何在 SwiftUI 中使用来自网络调用的数据填充 TextField?
- reactjs - 使用 formik 设置字段值以从外部按钮反应选择组件
- go - 处理上下文取消错误
- python - 如何使用我当前的 python 设置安装 NumPy 和 Pandas?
- python - 有什么办法可以制作一个可以赋予角色的机器人