<script type="text/javascript">
var firstValue = 5;
var secondValue = "5";
if (firstValue == secondValue) {
document.writeln("They are the same.");
} else {
document.writeln("They are not the same.");
}
if (firstValue === secondValue) {
document.writeln("They are the same.");
} else {
document.writeln("They are not the same.");
}
</script>
Javascript 等于判别
最新推荐文章于 2021-09-06 22:14:29 发布