事件本检查时间刷新并推送
This commit is contained in:
@@ -8,6 +8,13 @@ export default class HomeController extends Controller {
|
||||
|
||||
public async dev() {
|
||||
const { ctx } = this;
|
||||
let time1 = new Date();
|
||||
let time2 = Number(time1);
|
||||
let offset = time1.getTimezoneOffset();
|
||||
|
||||
let today = time1.setHours(0, 0, 0, 0);
|
||||
|
||||
console.log(time1, time2, offset, today);
|
||||
await ctx.render('index',{
|
||||
title: 'xxx'
|
||||
});
|
||||
|
||||
@@ -60,8 +60,23 @@
|
||||
<button type="button" id="send" class="btn btn-primary btn-l">发送</button>
|
||||
</div>
|
||||
</form>
|
||||
<br /><br />
|
||||
<div id="content"></div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<form id="form2">
|
||||
<div class="form-group">
|
||||
<label for="tuisong"">接受推送</label>
|
||||
<input type="text" class="form-control" id="tuisong" name="tuisong" placeholder="tuisong">
|
||||
</div>
|
||||
<div class="text-right" aria-label="...">
|
||||
<button type="button" id="confirm" class="btn btn-primary btn-l">确认</button>
|
||||
</div>
|
||||
</form>
|
||||
<br /><br />
|
||||
<span id="time"></span>
|
||||
<div id="content2"></div>
|
||||
</div>
|
||||
<div class="col-sm-6" id="content"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user