Jun Yang
2019-04-02 00:46:32 +08:00
parent a084183246
commit daa0b574fc
3 changed files with 38 additions and 1 deletions
+10 -1
View File
@@ -9,7 +9,16 @@ export const ctx = {
arr: [-2, 'a'],
obj: { foo: 'bar' },
func: function () {},
posts: [{ category: 'foo' }, { category: 'bar' }]
posts: [{ category: 'foo' }, { category: 'bar' }],
products: [
{title: 'Vacuum', type: 'living room'},
{title: 'Spatula', type: 'kitchen'},
{title: 'Television', type: 'living room'},
{title: 'Garlic press', type: 'kitchen'},
{title: 'Coffee mug', available: true},
{title: 'Limited edition sneakers', available: false},
{title: 'Boring sneakers', available: true}
]
}
export async function test (src: string, dst: string) {