
本文共 1221 字,大约阅读时间需要 4 分钟。
��������������� function
��� rest
��������������� spread
������������������ES6
������������ Object
��� Rest & Spread
���������
��������������������������������������������������� spread
������������������������������������������������������������������������������������
const input = { a: 1, b: 2 };const output = { ...input, c: 3 };
������������������������output
��������������������� { a: 1, b: 2, c: 3 }
��������������������������������� Vue
������������������������������������������������������������
������ spread
���Object Rest
������������������������������rest
���������������������������������������������������������������������������������������������������������������
const input = { a: 1, b: 2, c: 3 };let { a, ...rest } = input;
���������������������a
��������������� 1
������ rest
��������� { b: 2, c: 3 }
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������
������������������������������������������ react-navigation ������������������������������������������������������������������������ spread
��� rest
������������������������������������������������������������������������������
发表评论
最新留言
关于作者
