摘要:
插槽 插槽种类 1. 默认插槽 2. 具名插槽 3. 备用插槽 4. 作用域插槽 默认插槽 // 带插槽的组件 <div> <header>1111</header> <slot></slot> <footer>2222</footer> </div> // 使用插槽的组件 <template> < 阅读全文
摘要:
时间转换 new Date 转换 var date = new Date() //Mon Jul 13 2020 16:25:51 GMT+0800 (中国标准时间) date.getTime() //1594628791783 var date = new Date(1594628791783) 阅读全文