小编Jua*_*tta的帖子

SVG numberOfItems属性不起作用

在最新更新后,我们的网站突然停止使用Chrome(只是chrome)...

给出的错误是

Uncaught TypeError: Cannot read property 'numberOfItems' of undefined
Run Code Online (Sandbox Code Playgroud)

这是使用numberOfItems属性的地方:

// Absolutize and parse path to array
  , parse: function(array) {
      /* if it's already is a patharray, no need to parse it */
      if (array instanceof SVG.PathArray) return array.valueOf()

      /* prepare for parsing */
      var i, il, x0, y0, x1, y1, x2, y2, s, seg, segs
        , x = 0
        , y = 0

      /* populate working path */
      SVG.parser.path.setAttribute('d', typeof array === 'string' ? array : arrayToString(array)) …
Run Code Online (Sandbox Code Playgroud)

javascript svg google-chrome

5
推荐指数
1
解决办法
845
查看次数

标签 统计

google-chrome ×1

javascript ×1

svg ×1