【无标题】

1.原生html页面中使用echart控制台警告,如下

【无标题】_第1张图片
2.方案一:本地引入js代码

!function (e) { "function" == typeof define && define.amd ? define(e) : e() }(function () { var e, t = ["scroll", "wheel", "touchstart", "touchmove", "touchenter", "touchend", "touchleave", "mouseout", "mouseleave", "mouseup", "mousedown", "mousemove", "mouseenter", "mousewheel", "mouseover"]; if (function () { var e = !1; try { var t = Object.defineProperty({}, "passive", { get: function () { e = !0 } }); window.addEventListener("test", null, t), window.removeEventListener("test", null, t) } catch (e) { } return e }()) { var n = EventTarget.prototype.addEventListener; e = n, EventTarget.prototype.addEventListener = function (n, o, r) { var i, s = "object" == typeof r && null !== r, u = s ? r.capture : r; (r = s ? function (e) { var t = Object.getOwnPropertyDescriptor(e, "passive"); return t && !0 !== t.writable && void 0 === t.set ? Object.assign({}, e) : e }(r) : {}).passive = void 0 !== (i = r.passive) ? i : -1 !== t.indexOf(n) && !0, r.capture = void 0 !== u && u, e.call(this, n, o, r) }, EventTarget.prototype.addEventListener._original = e } });
//# sourceMappingURL=index.umd.js.map  

方案二:cdn引入

你可能感兴趣的:(javascript,前端,echarts)