标签:define lse 识别 console OLE fine ons pre log
var s1 = {}
var s2 = undefined
var s3 = null
var s4 = ""
if(s1) console.log(‘true‘) //只有 {} 被识别为false
if(s2) console.log(‘true‘)
if(s3) console.log(‘true‘)
if(s4) console.log(‘true‘)
标签:define lse 识别 console OLE fine ons pre log
原文地址:https://www.cnblogs.com/lhx9527/p/13948016.html