JS中如何快速将字符串的“true"和"false"转换成Bool类型

19 阅读1分钟
JSON.parse('true')
JSON.parse('false')