标签:其它 ons nan 函数 一个 操作符 val 自身 log
<script>
console.log(‘Number(null):‘, Number(null));
//Number(null): 0
console.log(‘Number(undefined):‘, Number(undefined));
//Number(undefined): NaN
console.log(‘String(null):‘, String(null), typeof String(null));
//String(null): null string
console.log(‘String(undefined):‘, String(undefined), typeof String(undefined));
//String(undefined): undefined string
</script>
标签:其它 ons nan 函数 一个 操作符 val 自身 log
原文地址:https://www.cnblogs.com/xjt31/p/14307415.html