var objOne = undefined || 1 || null || new Date(); var objTwo = new Date(); var objThree = objOne || objTwo; alert(objThree.toString()); //out put "1"
转载于:https://www.cnblogs.com/ylemzhang/archive/2011/11/07/2239219.html
转载于:https://www.cnblogs.com/ylemzhang/archive/2011/11/07/2239219.html