摘要: 初级篇 1、三目运算符 下面是一个很好的例子,将一个完整的 if 语句,简写为一行代码。 const x = 20; let answer; if (x > 10) { answer = 'greater than 10'; } else { answer = 'less than 10'; } 简 阅读全文
posted @ 2022-02-23 17:19 ℳℓ马温柔 阅读(177) 评论(0) 推荐(0) 编辑