阅读背景:

Node.js布尔变量不改变值

来源:互联网 

I have following code:

我有以下代码:

app.post('/', function (req, res)
    {
        /*
        connection is created with mysql
         */
        var success = true
        connection.query(sql, [values], function (err, result)
        {
            success = false
        })
        connection.end()
        console.log(success)
    }
)
app.post('/'



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: