This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://unpkg.com/[email protected]/dist/vconsole.min.js"></script> | |
<script> | |
// init vConsole | |
var vConsole = new VConsole(); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream backend { | |
server 127.0.0.1:3000; | |
} | |
server { | |
listen 80; | |
server_name your.hostname.com; | |
proxy_set_header Host $http_host; | |
access_log /tmp/test-access.log debug; | |
rewrite_log on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="a3-404"> | |
<div class="a3-container a3-min-height"> | |
<h1>4</h1> | |
<h1>0</h1> | |
<h1>4</h1> | |
<h1>页面不存在</h1> | |
<p><mu-raised-button label="回到首页" href="/" class="demo-raised-button" secondary/></p> | |
<h2>或者联系客服</h2> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 参考 */ | |
select { | |
/*Chrome和Firefox里面的边框是不一样的,所以复写了一下*/ | |
border: solid 1px #000; | |
/*很关键:将默认的select选择框样式清除*/ | |
appearance:none; | |
-moz-appearance:none; | |
-webkit-appearance:none; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
-webkit-touch-callout:none; | |
-webkit-user-select:none; | |
-khtml-user-select:none; | |
-moz-user-select:none; | |
-ms-user-select:none; | |
user-select:none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fmtDate = function (_date, fmt) { | |
var date = new Date(_date) | |
var o = { | |
'M+': date.getMonth() + 1, // 月份 | |
'd+': date.getDate(), // 日 | |
'h+': date.getHours(), // 小时 | |
'm+': date.getMinutes(), // 分 | |
's+': date.getSeconds(), // 秒 | |
'q+': Math.floor((date.getMonth() + 3) / 3), // 季度 | |
'S': date.getMilliseconds() // 毫秒 |