请解释一下这行var是什么= Query = req.db.driver.query;手段

时间:2015-10-20 09:22:33

标签: node.js express

module.exports = {

//Admin index
index: function(req, res, next) {
    console.log('I am in indexChoicelist');
    var Query = req.db.driver.query;
    var perPages = 10;
    var page = parseInt(req.params.page) || 1;

    if( isNaN(page) || page < 1) {
        page = 1;
    }

    log.debug('>>req.body:'+ JSON.stringify(req.body));
    log.debug('>> page:'+ page);

    // var name = req.body.name || "";
    // var sku = req.body.sku;
    var deleted = req.body.deleted

为什么我们使用这个req.body.deleted?

请解释一下这行[{1}}的含义是什么

0 个答案:

没有答案