1
2
3
4
5
6
7
8
9
10
11
12
const d:Date = new Date();

const r:RegExp = /^ab/;

const m: Map<string, number> = new Map();

const wx: WeakMap<> = new WeakMap();

const s: Set = new Set();

const wx: WeakSet = new WeakSet();

一般通过构造函数描述