You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Object.create// proto 新对象的原型对象// props Object.defineProperties 的第二个参数,要定义其可枚举属性或修改的属性描述符的对象。对象中存在的属性描述符:数据描述符和访问器描述符Object.myCreate=function(proto,props){if(typeofproto!=='object'){console.error('Object prototype may only be an Object or null')return}// 创建的空对象constobj={}// 设置原型对象Object.setPrototypeOf(obj,proto)// 设置对象的初始数据if(props){Object.defineProperties(obj,props)}returnobj}
愿意花更多的时间、倾注更多的精力来跟大家一起努力。
目录
apply
async await
bind
call
concurrent-request
debounce
deep-copy
event-bus
继承
instanceof
new
object-create
promise
throttle
go!go!go!
The text was updated successfully, but these errors were encountered: