摘要:
// a.js export const a = 11; export default { aa() { console.log(22) } } // b.js import {a} from 'a.js'; // a -> 11; import any from 'a.js'; // any -> {aa() {console.log(22) } ... 阅读全文
摘要:
function deepCopy(obj) { var result = Array.isArray(obj) ? [] : {}; for (var key in obj) { if (obj.hasOwnProperty(key)) { if (typeof obj[key] === 'object') { ... 阅读全文