Unexpected end of input Jquery

谁说胖子不能爱 提交于 2019-12-12 03:50:16

问题


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).



来源:https://stackoverflow.com/questions/15750001/unexpected-end-of-input-jquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!