摘要:
//当天 function writeCurrentDate() { var now = new Date(); var year = now.getFullYear(); //得到年份 var month = now.getMonth();//得到月份 var date = now.getDate 阅读全文
摘要:
function deepClone(obj) { let newObj = Array.isArray(obj) ? [] : {} if (obj && typeof obj "object") { for (let key in obj) { if (obj.hasOwnProperty(ke 阅读全文