Unexpected end of input Jquery

2019-09-05 16:35发布

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条回答
贼婆χ
2楼-- · 2019-09-05 17:17

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

查看更多
登录 后发表回答