摘要:
function formatDate(date, format='date') { if(typeof format 'function'){ format=format(); } if(typeof format !=='string'){ return new TypeError('forma 阅读全文
摘要:
function myNew(constructor, ...args) { // 参数验证 if (typeof constructor !== 'function') { throw new TypeError('myNew: First argument must be a function' 阅读全文