0
我在我的index.html
文件中有一個按鈕,點擊該按鈕後應在根目錄中打開另一個名爲index2.html
的html頁面。但是,當我點擊按鈕,我得到一個網頁找不到選項。我究竟做錯了什麼?Html頁面不能在節點j中打開
app.js
server.get('/', restify.serveStatic({
directory: __dirname,
default: '/index.html'
}));
server.get('/page2', restify.serveStatic({
directory: __dirname,
default: 'index2.html'
}));
的index.html
<a href="/page2"> <button type="button"> Full Chat history </button> </a>