我的index.html
文件中有一个按钮,点击后会在根目录中打开另一个名为index2.html
的html页面。但是,当我点击按钮时,我找不到一个网页选项。我做错了什么?
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>
答案 0 :(得分:1)
你的代码在这里..
use yii\db\Query;
$query = new Query;
$query->select('*')
->from('table')
->where(['=','status',$status]);
for($i=0;$i<count($val);$i++){
$query->orWhere(['like',column1,$val[$i]]);
}
$command = $query->createCommand();
应该是
server.get('/page2', restify.serveStatic({
directory: __dirname,
default: 'index2.html'
}));