I found this snippet of code in my travels in researching JSON:
var array = typeof objArray != 'object' ? JSON.parse(objArray) : objArray;
I'm seeing more and more of the ?
and :
notation. I don't even know what it is called to look it up! Can anyone point me to a good resource for this? (btw, I know what !=
means).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…