- Delete mutiple branch
git branch -D `git branch --list '3.2.*'`
- Apply the changes introduced by some existing commits
# one
git cherry-pick 88ce01c
# mutiples
git branch -D `git branch --list '3.2.*'`
# one
git cherry-pick 88ce01c
# mutiples
class HtmlWebpackHandleCssInjectPlugin { | |
constructor(options = {}) { | |
this.options = options; | |
} | |
apply(compiler) { | |
const handleHtmlWebpackPluginAfterHtmlProcessing = (data) => { | |
const { filter } = this.options; | |
if (!filter) { |
IE6 Only | |
================== | |
_selector {...} | |
IE6 & IE7 | |
================== | |
*html or { _property: } | |
IE7 Only | |
================== |
#!/usr/bin/env bash | |
# 进入目录 | |
cd dir | |
git checkout --orphan new | |
# 删除原有文件 | |
git reset -- . | |
git clean -df | |
# 将资源文件复制到此目录 | |
cp -a * ./ | |
git add . |
function documentHeight() { | |
return Math.max( | |
document.documentElement.clientHeight, | |
document.body.scrollHeight, | |
document.documentElement.scrollHeight, | |
document.body.offsetHeight, | |
document.documentElement.offsetHeight | |
); | |
} |
/** | |
* Created by Godfery on 2016/12/8. | |
*/ | |
/** | |
* Created by Godfery on 2016/12/7. | |
*/ | |
var a = [['bj', 1, 'sh', 2, 'wh', 3], ['gz', 4, 'bj', 5], ['sh', 6], ['sh', 5]]; | |
/** | |
* 获取数组聚合 | |
* @param array |
A small library for padding strings in JavaScript. Marmalade-free.
![NPM version][shield-npm] ![Node.js version support][shield-node] ![Build status][shield-build] ![Code coverage][shield-coverage]
option = { | |
"title": { | |
"x": "center", | |
"y": "20", | |
"textStyle": { | |
"color": "#999", | |
"fontWeight": "100" | |
}, | |
"text": "来源分析" | |
}, |
option={
"color": [
"#fe8463",
"#9bca63",
"#fad860",
"#60c0dd",
"#0084c6",
"#d7504b",
"#c6e579",
var test = { | |
id: 1, | |
user: { | |
role: [1, 2, 3, 4], | |
userGroup: { | |
id: 1 | |
}, | |
name: { | |
first: "foo", | |
last: "bar" |