This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*check.ejs打ejs沒有顏色所以標題改js*/ | |
| <%- include header.ejs %> | |
| <style type="text/css"> | |
| #btnok{ | |
| position:relative; | |
| left: 77%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*控制路徑的js檔*/ | |
| router.post('/check',function(req, res){ | |
| Check.updataPartly(req.body.foodName, req.body.numBig, req.body.numSamll ,function(err){ | |
| if (err) { | |
| req.flash('error',err); | |
| return res.redirect('/post') | |
| } | |
| req.flash('success','扣除食物成功'); | |
| res.redirect('/post '); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*控制路徑的js檔*/ | |
| router.post('/check',function(req, res){ | |
| Check.updataPartly(req.body.foodName, req.body.numBig, req.body.numSamll ,function(err){ | |
| if (err) { | |
| req.flash('error',err); | |
| return res.redirect('/post') | |
| } | |
| req.flash('success','扣除食物成功'); | |
| res.redirect('/post '); | |
| }); |
NewerOlder