📄 03.js
字号:
// Return an array that holds the names of the enumerable properties of ofunction getPropertyNames(/* object */o) { var r = []; for(name in o) r.push(name); return r;}// Copy the enumerable properties of the object from to the object to.// If to is null, a new object is created. The function returns to or the// newly created object.function copyProperties(/* object */ from, /* optional object */ to) { if (!to) to = {}; for(p in from) to[p] = from[p]; return to;}// Copy the enumerable properties of the object from to the object to,// but only the ones that are not already defined by to.// This is useful, for example, when from contains default values that// we want to use if they are not already defined in to.function copyUndefinedProperties(/* object */ from, /* object */ to) { for(p in from) { if (!p in to) to[p] = from[p]; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -