xxxxxxxxxx
<!DOCTYPE html>
<html>
<title>JavaScript 数据类型转换Boolean("0")示例 - 基础教程(div.cn)</title>
<body>
<p>请注意,作为字符串文字的" 0"(零)将转换为true,因为它是非空字符串值:</p>
<p id="output"></p>
<script>
document.querySelector("#output").innerHTML = Boolean("0");
</script>
</body>
</html>