<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ``` //引包 var express = require('express'); var bodyParser = require('body-parser'); //創建應用程序 var app = express(); //使用art-template app.engine('html', require('express-art-template')); //配置 body-parser 中間件 (插件,專門用來解析表單POST請求體) app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.json()); //設置靜態資源訪問 app.use('/public', express.static('./public/')); app.get('/', function (req, res) { res.render('index.html', { comments: comments }); }); app.get('/post', function (req, res) { res.render('post.html'); }); // app.get('/pinglun', function (req, res) { // var comment = req.query; // comments.unshift(comment); // res.redirect('/'); // }) // 當以post請求請求/post的時候,執行指定的處理函數 app.post('/post', function (req, res) { // console.log('收到表單post請求了'); //1. 獲取表單POST請求的數據 //2. 處理 //3. 發送響應 //req.query 只能獲取get請求的數據 var comment = req.body; comments.unshift(comment); res.redirect('/'); // res.send('post'); }); app.listen(3000, function () { console.log('Express is running'); }); var comments = [ { name: '張三', message: '今天天氣不錯', dateTime: '2018-12-12' }, { name: '張11', message: '44今天天氣不錯', dateTime: '2018-12-12' }, { name: '張22', message: '11今天天氣不錯', dateTime: '2018-12-1' }, { name: '張33', message: '22今天天氣不錯', dateTime: '2018-2-12' } ]; ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看