欢迎光临散文网 会员登陆 & 注册

马老师 springcloud gateway

2022-10-29 23:41 作者:olger2000  | 我要投稿

Object.prototype API

Object.prototype 表示对象的原型对象
Object.prototype 属性的属性特征

writable ==> 是否可写 ==> false(默认)enumerable ==> 是否可枚举 ==> false(默认)configurable ==> 是否可配置 ==> false(默认)

Object.assign()

用于将所有可枚举属性的值从一个或多个源对象复制到目标对象并返回目标对象

Object.assign(target, ...sources)  // target 目标对象, sources 源对象Object.assign( { a: 2, b: 1 }, { a: 1 } )   // { a: 1, b: 1 }Object.assign( { a: 1, b: 2 }, { a: 'a' }, { c: 3 }, { a: 4 } )  // { a: 4, b: 2, c: 3


马老师 springcloud gateway的评论 (共 条)

分享到微博请遵守国家法律