[英]jQuery 3.6.0 and jsPlumb Community Edition 5.10.4 RC: Uncaught TypeError: el.getAttribute is not a function
I can't make the current versions of jQuery (3.6.0) and jsPlumb Community Edition (5.10.4 RC) work with each other.我无法使当前版本的 jQuery (3.6.0) 和 jsPlumb Community Edition (5.10.4 RC) 相互配合。 I use the current version of Mozilla Firefox on Windows 10.
我在 Windows 10 上使用当前版本的 Mozilla Firefox。
If I initialize my jsPlumb structures inside a如果我在一个内部初始化我的 jsPlumb 结构
$(document).ready( function(){ ... } );
function, nothing happens but the browser console shows a warning function,没有任何反应,但浏览器控制台显示警告
jQuery.Deferred exception: el.getAttribute is not a function getAttribute@file:///path/js/jsplumb.bundle.js:14643:19
manage@file:///path/js/jsplumb.bundle.js:7210:18
...
and an exception和一个例外
Uncaught TypeError: el.getAttribute is not a function
getAttribute file:///path/js/jsplumb.bundle.js:14643
manage file:///path/js/jsplumb.bundle.js:7210
manage file:///path/js/jsplumb.bundle.js:15589
_internal_newEndpoint file:///path/js/jsplumb.bundle.js:7368
addEndpoint file:///path/js/jsplumb.bundle.js:7551
<anonymous> file:///path/js/structuregraph.js:20
...
Here's the code of line 14643 and around of jsplumb.bundle.js:这是 jsplumb.bundle.js 的第 14643 行及附近的代码:
...
}, {
key: "setAttribute",
value: function setAttribute(el, name, value) {
el.setAttribute(name, value);
}
}, {
key: "getAttribute",
value: function getAttribute(el, name) {
return el.getAttribute(name); // <----------------------- line 14643
}
}, {
key: "setAttributes",
value: function setAttributes(el, atts) {
for (var i in atts) {
el.setAttribute(i, atts[i]);
}
}
}, {
...
What is the problem with this getAttribute
function?这个
getAttribute
function 有什么问题?
What does the code at file:///path/js/structuregraph.js:20
look like? file:///path/js/structuregraph.js:20
处的代码是什么样的?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.