尝试上传图片时出现javascript错误

时间:2014-04-21 07:24:24

标签: javascript

我收到错误" Uncaught SyntaxError:意外的令牌" 这是什么问题,目前这个错误使我无法使用图像上传器,因为它会产生错误"你的javascript"有问题。在此先感谢你们

(function(a) {
"use strict";
var b = function(a, c) {
        var d = /[^\w\-\.:]/.test(a) ? new Function(b.arg + ",tmpl", "var _e=tmpl.encode" + b.helper + ",_s='" + a.replace(b.regexp, b.func) + "';return _s;") : b.cache[a] = b.cache[a] || b(b.load(a));
        return c ? d(c, b) : function(a) {
            return d(a, b)
        }
    };
b.cache = {}, b.load = function(a) {
    return document.getElementById(a).innerHTML
}, b.regexp = /([\s'\\])(?![^%]*%\})|(?:\{%(=|#)([\s\S]+?)%\})|(\{%)|(%\})/g, b.func = function(a, b, c, d, e, f) {
    if (b) return {
        "\n": "\\n",
        "\r": "\\r",
        "\t": "\\t",
        " ": " "
    }[a] || "\\" + a;
    if (c) return c === "=" ? "'+_e(" + d + ")+'" : "'+(" + d + "||'')+'";
    if (e) return "';";
    if (f) return "_s+='"
}, b.encReg = /[<>&"'\x00]/g, b.encMap = {
    "<": "&lt;",
    ">": "&gt;",
    "&": "&amp;",
    '"': "&quot;",
    "'": "&#39;"
}, b.encode = function(a) {
    return String(a || "").replace(b.encReg, function(a) {
        return b.encMap[a] || ""
    })
}, b.arg = "o", b.helper = ",print=function(s,e){_s+=e&&(s||'')||_e(s);},include=function(s,d){_s+=tmpl(s,d);}", typeof define == "function" && define.amd ? define(function() {
    return b
}) : a.tmpl = b
})(this);

0 个答案:

没有答案