摘要: 基础类型:number类型、boolean类型和string类型,其操作方式为传值 引用类型:array类型、object类型、function类型,其操作方式为传址 采用深拷贝的方法:(原理先转换为基础类型,再转换回来) 阅读全文
posted @ 2020-04-02 14:21 唯爱金生 阅读(226) 评论(0) 推荐(0) 编辑
摘要: ``` //得到当前日期 formatterDate = function (date) { var day = date.getDate() > 9 ? date.getDate() : "0" + date.getDate(); var month = (date.getMonth() + 1) > 9 ? (date.getMonth() + 1) : "0" + (date.getMont 阅读全文
posted @ 2020-04-02 10:21 唯爱金生 阅读(1415) 评论(0) 推荐(0) 编辑