index.js中的执行方法
router.post('/deleteAccount', function(req,res){ var id = req.body.accountId; Account.delete(id,function(err){ if(err){ req.flash('error', err); return res.redirect('/managerMoney'); } req.flash('success','delete success!'); res.redirect('/managerMoney'); }); });