JavaScript数据类型
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>值类型</title>
</head>
<body>
<script>
var a = "1";
var num1 = 0.1;
var num2 = 0.2;
console.log(num1 + num2);
console.log(isNaN(a));
var str = "我是一个\"高级程序员!";
var str1 = '我是一个高级程序员!';
var str2 = `我是一个“ <br/>高级程序员!`;
console.log(str2);
var remi;
console.log(remi);
var a = null;
console.log(a);
console.log(null == undefined);
</script>
</body>
</html>
转载请注明原文地址:https://ipadbbs.8miu.com/read-331.html