摘要: 字符长度 const message = 'Hello!'; const smile = '😀'; [...message].length; // => 6 [...smile].length; // => 1 闭包的正确用法 const counter = (initial = 0) => { 阅读全文
posted @ 2020-08-21 15:51 猫神甜辣酱 阅读(253) 评论(0) 推荐(3) 编辑