未捕获的TypeError:无法读取未定义的属性“id” - Jquery

时间:2017-06-09 16:31:00

标签: jquery

我在尝试此错误时收到此错误

function e(e, a, s) {
var o = r("#" + s + "canvas")[0],
        n = r("#" + s + "canvas"),
        i = o.getContext("2d"),
        l = o.width / 2,
        d = o.height / 2;
i.beginPath(), i.arc(l, d, r(n).attr("data-radius"), 0, 2 * Math.PI, !1), i.fillStyle = "transparent", i.fill(), i.lineWidth = r(n).attr("data-width"), i.strokeStyle = r(n).attr("data-progressBarBackground"), i.stroke(), i.closePath(), i.beginPath(), i.arc(l, d, r(n).attr("data-radius"), -t(90), -t(90) + t(e / 100 * 360), !1), i.fillStyle = "transparent", i.fill(), i.lineWidth = r(n).attr("data-width"), i.strokeStyle = r(n).attr("data-stroke"), i.stroke(), i.closePath(), "true" == r(n).attr("data-text").toLocaleLowerCase() && r("#" + s + " .clProg").val(a + ("true" == r(n).attr("data-percent").toLocaleLowerCase() ? "%" : ""))
}
r.fn.circularloader = function(t) {
    function a() {
        h.beginPath(), h.arc(u, f, i, 0, 2 * Math.PI, !1), h.fillStyle = n.backgroundColor, h.fill(), h.lineWidth = l, h.strokeStyle = n.progressBarBackground, h.stroke(), h.closePath(), c > 0 && e(c, d, o)
    }

    var s = this[0],
        o = s.id;

我在“s.id”处遇到上述错误。我甚至试图声明id,但无法解决错误。

0 个答案:

没有答案