简化12306接口,规范属性名称,用于数据库设计,数据接口定义
命名规则
{ | |
"extends": "airbnb-base", | |
// env settings | |
"env": { | |
"browser": true, | |
"node": true | |
}, | |
// globals |
Getting started:
Related tutorials:
server { | |
listen 8090; | |
server_name localhost; | |
root /Users/jerryliu/Coding/myapp/phpdemo01; | |
index index.php index.html index.htm; | |
autoindex off; | |
location / { | |
try_files $uri $uri/ /index.php; |
## What does Function.prototype.bind do ? | |
Function.prototype.bind = function (scope) { | |
if (typeof this !== "function") { | |
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable"); | |
} | |
var fn = this; | |
return function () { | |
return fn.apply(scope); |
server { | |
listen 80; | |
server_name test.com *.test.com; | |
rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent; | |
rewrite ^/(.*)/$ /$1 permanent; | |
root /path/to/project/root; | |
index index.html; | |
try_files $uri/index.html $uri.html $uri/ $uri =404; |
{ | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": [ | |
"airbnb" // 以社区广泛使用的 airbnb 风格指南作为基础 | |
], |
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="robbyrussell" | |
# Uncomment the following line to use case-sensitive completion. |
/** | |
* @param {Boolean} [normal = false] - 默认开启页面压缩以使页面高清; | |
* @param {Number} [baseFontSize = 100] - 基础fontSize, 默认100px; | |
* @param {Number} [fontscale = 1] - 有的业务希望能放大一定比例的字体; | |
*/ | |
const win = window; | |
export default win.flex = (normal, baseFontSize, fontscale) => { | |
const _baseFontSize = baseFontSize || 100; | |
const _fontscale = fontscale || 1; |