Unexpected end of input Jquery

2019-09-05 17:06发布

问题:

I'm getting this error, but I CHECKED ALL the brackets 20 times before posting. Can there be another problem? Thanks!!!

var ifBlock = function (options) {
    var options1 = options['entry']
    var options2 = options['condition']
    if (options1 != null && options2 != null) {
        return eval("VB.interpreter.dictionary["+options1+"]" + " " + options2)
    } else {
        return false
    }
}

回答1:

Run your whole code through http://jsbeautifier.org/ and check if you are missing some bracket in your overall script (which you probably are).