遍歷對象而且移除屬性

for(let i:number = 0, keys = Object.keys(props),len =keys.length;i<len;i++){ let it = props[keys[i]]; let condition = it.replace(/\s*/g, ""); if (!condition) { delete props[keys[i]
相關文章
相關標籤/搜索