javascript Quete - 我可以获得一些POST
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript Quete - 我可以获得一些POST相关的知识,希望对你有一定的参考价值。
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
/* GET params url and query params*/
router.get('/forms-:urlParams(\\d+)', (req, res, next) => {
console.log(req.params.urlParams);
console.log(req.query.level);
});
/* PUT name in form */
router.post('/forms-:urlParams(\\d+)', (req, res, next) => {
console.log(req.body.name);
});
module.exports = router;
以上是关于javascript Quete - 我可以获得一些POST的主要内容,如果未能解决你的问题,请参考以下文章
javascript Quete 1 - JS
javascript Quete React
html Quete javascripting“Patates!”
text QUETE JOINTURE
text quete3 msql
text quete.txt