小编Mik*_*hne的帖子

jQuery-UI - "无法读取未定义的属性'步骤'

我们最近将jQuery从2.2.4升级到3.1.1,现在看到一些有趣的错误.我安装了jquery-migrate插件,帮助我解决了一些错误,但不是全部.以下是我在Chrome浏览器控制台中看到的错误,我似乎无法确定发生此错误的位置.

jquery-ui-1.12.1.js:1951 Uncaught TypeError: Cannot read property 'step' of undefined
    at String.<anonymous> (jquery-ui-1.12.1.js:1951)
    at each (jquery-3.1.1.slim.js:368)
    at Function.color.hook (jquery-ui-1.12.1.js:1913)
    at jquery-ui-1.12.1.js:1963
    at jquery-ui-1.12.1.js:2005
    at jquery-ui-1.12.1.js:14
    at jquery-ui-1.12.1.js:16
Run Code Online (Sandbox Code Playgroud)

我在Chrome中进行了调试,它打破了一个名为的函数jQuery.fx.step[ hook ].当我将鼠标悬停在上面时jQuery.fx,它显示为未定义.见下文

jQuery.fx.step[ hook ] = function( fx ) {
            if ( !fx.colorInit ) {
                fx.start = color( fx.elem, hook );
                fx.end = color( fx.end );
                fx.colorInit = true;
            }
Run Code Online (Sandbox Code Playgroud)

我已经卸载了jquery-ui,但所有这一切都是打破Angular.如果有人可以对这个问题有所了解,那会很高兴.

packages.config =

  <package id="Angular.Material" version="1.1.4" targetFramework="net462" />
  <package id="Angular.UI.Bootstrap" version="2.5.0" targetFramework="net462" />
  <package …
Run Code Online (Sandbox Code Playgroud)

jquery jquery-ui angularjs

23
推荐指数
1
解决办法
1万
查看次数

标签 统计

angularjs ×1

jquery ×1

jquery-ui ×1