<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ~~~ //根據用戶不同請求做出不同的響應 //加載http模塊 var http=require('http'); //加載fs模塊 var fs=require('fs'); //加載path模塊 var path=require('path'); //創建http服務,并啟動該服務 http.createServer(function(req,res){ //通過req.url獲取用戶請求的路徑,根據不同的請求路徑服務器做出不同的響應 if(req.url==='/'||req.url==='/index'){ fs.readFile(path.join(__dirname,'htmls','index.html'),function(err,data){ if(err){ throw err; } //把讀取到的index.html中的內容直接發送給瀏覽器 res.end(data); }) }else if(req.url==='/login'){ fs.readFile(path.join(__dirname,'htmls','login.html'),function(err,data){ if(err){ throw err; } //把讀取到的index.html中的內容直接發送給瀏覽器 res.end(data); }) }else if(req.url==='/list'){ }else if(req.url==='/register'){ }else{ fs.readFile(path.join(__dirname,'htmls','404.html'),function(err,data){ if(err){ throw err; } //把讀取到的index.html中的內容直接發送給瀏覽器 res.end(data); }) } }).listen(8080,function(){ console.log("http://localhost:8080"); }); ~~~ ![](https://box.kancloud.cn/d2c6c606f115f1d263e27494c435b38d_133x90.png) ~~~ //index.html中的內容 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>hello index</title> </head> <body> <h1 style="color: red;">hello world</h1> <h1>你好首頁</h1> </body> </html> ~~~
                  <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>

                              哎呀哎呀视频在线观看