清空对象里面所有的属性值

学习笔记 廖佳星
文章标签: 遍历对象清空值
180

let obj={"a":1,"b":2};

Object.keys(obj).map(key=>obj[key]='');

console.log(obj);

还能输出{{restrictNumber}}个字符  
  • {{reply.author}}

    {{CommonUtil.formateDate(reply.ac_CommentDate).shortTime}}
  • 回复了{{Comments.author}} :