https://github.com/yongboo/webpack4-vue2-multiPage
https://github.com/MikeMcl/bignumber.js
https://github.com/josdejong/mathjs
https://developer.mozilla.org/zh-CN/docs/Web/API/Element/insertAdjacentHTML
https://github.com/beizhedenglong/vue-hooks-form/blob/master/example/components/Demo.vue
https://github.com/vue3/vue3-News
http://www.alloyteam.com/category/webdevelop/javascript/
www.alloyteam.com/nav/
https://www.jstips.co/zh_cn/javascript/copy-to-clipboard/
https://github.com/masx200/typescript-tutorial/blob/master/advanced/type-aliases.md
https://github.com/amazeui/amazeui/tree/master/js
https://github.com/xaksis/vue-good-table
function find(list, f) {
return list.filter(f)[0]
}
function deepCopy(obj, cache = []) {
// just return if obj is immutable value
if (obj === null || typeof obj !== 'object') {
return obj
}
// if obj is hit, it is in circular structure
const hit = find(cache, c => c.original === obj)
if (hit) {
return hit.copy
}
const copy = Array.isArray(obj) ? [] : {}
// put the copy into cache at first
// because we want to refer it in recursive deepCopy
cache.push({
original: obj,
copy
})
Object.keys(obj).forEach(key => {
copy[key] = deepCopy(obj[key], cache)
})
return copy
}
const obj1 = [{
name: 1,
child: {
name: 1
},
man: 11
}]
var obj2 = deepCopy(obj1)
obj2[0].child.nice = 121
obj2[0].child.arr= 1211
console.log(obj2)
console.log(obj1)