验证 jquery 问题中的字段

Verifying fields in jquery issue

我正在尝试验证字段,但我不断收到意想不到的令牌 { 但它是一个 if else,我不确定我做错了什么。任何帮助都会很棒。我正在学习jquery。谢谢

if ((project !== "") && (example !== "") 
&& (location !== "") && (moreinfo !== "") && (email !== "") 
&& (dateTime !== "") &&(phone !== "") ((agree !== "") && (validateEmail(email))){ //here!
        $.ajax({
            url: "website url",
            data: { "entry123": allvariables above
   },
            type: "POST",
            dataType: "xml",
            statusCode: {
                0: function () {
                    window.location.replace("index.html");
                },
                200: function () {
                    window.location.replace("thanks.html");
                }
            }
        });
    } else {
        console.error(error)
        var error = error;

    }   
}

Im trying to verify fields and I keep getting unexpected token {

你需要在&&(phone !== "")

之后加上&&

应该是

if ((project !== "") && (example !== "") 
&& (location !== "") && (moreinfo !== "") && (email !== "") 
&& (dateTime !== "") &&(phone !== "") && ((agree !== "") && (validateEmail(email))){