Merge pull request #167 from sunyongmofang/sunyongmofang_study

去除dayjs中的toArray和toObject实例

Former-commit-id: d2bd52baa9d40bdf57f084a86d4fd5db0d434e9e [formerly d2bd52baa9d40bdf57f084a86d4fd5db0d434e9e [formerly d2bd52baa9d40bdf57f084a86d4fd5db0d434e9e [formerly d2bd52baa9d40bdf57f084a86d4fd5db0d434e9e [formerly 563e1020679b7e8190a232e9623eb09b0026c971 [formerly 860792f6e5c0a59b0a8ad03981d4ad152516eed1]]]]]
Former-commit-id: e170b84f76ab5d8a3b188385bab5648d3ad55be8
Former-commit-id: fc8a04384cf6a507c92879a2603e7ed7e6c18bf9
Former-commit-id: 0e955abb0b35438c1d281353a36b9efdf3a197c8 [formerly e6e12c39e1b40e14228bf51b02de1d336911f880]
Former-commit-id: d0dcc4154aff45edb715141bd730988540f96aea
Former-commit-id: 69d862e2ae72c2b5708a164a86f3da00c2dedbd2
Former-commit-id: 6a9f6d05ac537f20d25231f893c48ecd6b9c78e5
Former-commit-id: e889368342d1b1c00d9eaed38404548552a5ddc1
Former-commit-id: 63decd35e202870ec42422256b500f8d383b642c
This commit is contained in:
李杨
2019-04-06 17:36:22 +08:00
committed by GitHub

View File

@@ -42,11 +42,11 @@
<el-col :span="12"><el-card shadow="never" class="d2-mb"><d2-highlight slot="header" :code="`// Unix 时间戳 (秒)\ndayjs().unix()`"/>{{dayjs().unix()}}</el-card></el-col> <el-col :span="12"><el-card shadow="never" class="d2-mb"><d2-highlight slot="header" :code="`// Unix 时间戳 (秒)\ndayjs().unix()`"/>{{dayjs().unix()}}</el-card></el-col>
<el-col :span="12"><el-card shadow="never" class="d2-mb"><d2-highlight slot="header" :code="`// 天数 (月)\ndayjs().daysInMonth()`"/>{{dayjs().daysInMonth()}}</el-card></el-col> <el-col :span="12"><el-card shadow="never" class="d2-mb"><d2-highlight slot="header" :code="`// 天数 (月)\ndayjs().daysInMonth()`"/>{{dayjs().daysInMonth()}}</el-card></el-col>
<el-col :span="12"><el-card shadow="never" class="d2-mb"><d2-highlight slot="header" :code="`// Date 对象\ndayjs().toDate()`"/>{{dayjs().toDate()}}</el-card></el-col> <el-col :span="12"><el-card shadow="never" class="d2-mb"><d2-highlight slot="header" :code="`// Date 对象\ndayjs().toDate()`"/>{{dayjs().toDate()}}</el-card></el-col>
<el-col :span="12"><el-card shadow="never" class="d2-mb"><d2-highlight slot="header" :code="`// 数组\ndayjs().toArray()`"/>{{dayjs().toArray()}}</el-card></el-col> <!-- <el-col :span="12"><el-card shadow="never" class="d2-mb"><d2-highlight slot="header" :code="`// 数组\ndayjs().toArray()`"/>{{dayjs().toArray()}}</el-card></el-col> -->
<el-col :span="12"><el-card shadow="never" class="d2-mb"><d2-highlight slot="header" :code="`// 序列化 Dayjs 对象时会返回 ISO 8601 格式的字符串\ndayjs().toJSON()`"/>{{dayjs().toJSON()}}</el-card></el-col> <el-col :span="12"><el-card shadow="never" class="d2-mb"><d2-highlight slot="header" :code="`// 序列化 Dayjs 对象时会返回 ISO 8601 格式的字符串\ndayjs().toJSON()`"/>{{dayjs().toJSON()}}</el-card></el-col>
<el-col :span="12"><el-card shadow="never" class="d2-mb"><d2-highlight slot="header" :code="`// ISO 8601 字符串\ndayjs().toISOString()`"/>{{dayjs().toISOString()}}</el-card></el-col> <el-col :span="12"><el-card shadow="never" class="d2-mb"><d2-highlight slot="header" :code="`// ISO 8601 字符串\ndayjs().toISOString()`"/>{{dayjs().toISOString()}}</el-card></el-col>
<el-col :span="12"><el-card shadow="never" class="d2-mb"><d2-highlight slot="header" :code="`// 字符串\ndayjs().toString()`"/>{{dayjs().toString()}}</el-card></el-col> <el-col :span="12"><el-card shadow="never" class="d2-mb"><d2-highlight slot="header" :code="`// 字符串\ndayjs().toString()`"/>{{dayjs().toString()}}</el-card></el-col>
<el-col :span="24"><el-card shadow="never"><d2-highlight slot="header" :code="`// 对象\ndayjs().toObject()`"/>{{dayjs().toObject()}}</el-card></el-col> <!-- <el-col :span="24"><el-card shadow="never"><d2-highlight slot="header" :code="`// 对象\ndayjs().toObject()`"/>{{dayjs().toObject()}}</el-card></el-col> -->
</el-row> </el-row>
<h1>查询</h1> <h1>查询</h1>
<el-row :gutter="20" class="d2-mt"> <el-row :gutter="20" class="d2-mt">