1<! DOCTYPE html>234<meta charset= "UTF-8" >5<title></title>6<script type= "Text/javascript" >7 functionTest () {8 varObj={name: "Hello"};9 vart1=!! Obj.name;//equivalent to Var test=o.flag| | false;TenConsole.log (t1);//true One vart2=obj.name| |false; AConsole.log (T2);//Hello, huh ? - - varObj1={name: ""}; the varT3 = obj1.name| |false; -Console.log ((!! Obj1.name) + "" +t3);//false - - varObj2={name:undefined}; + varT4 = obj2.name| |false; -Console.log ((!! Obj2.name) + "" +t4);//false + A varObj3={name:NULL}; at varT5 = obj3.name| |false; -Console.log ((!! Obj3.name) + "" +t5);//false - - varObj4={name: ""}; - varT6 = obj4.name| |false; -Console.log ((!! Obj4.name) + "" +t6);//true Space in - varobj5={}; toConsole.log (!! Obj5.name);//false + - varobj6; theConsole.log (!! OBJ6);//false * $ varObj7= ";Panax NotoginsengConsole.log (!! OBJ7);//false - the varObj8= "; +Console.log (!! OBJ8);//true A the varobj9=undefined; +Console.log (!! OBJ9);//false - $ varobj10=NULL; $Console.log (!! OBJ10);//false - } - functionissupporthistorypushstate () { theConsole.log (!! (Window.history && history.pushstate));// - return!! (Window.history && history.pushstate);//returns TRUE or falseWuyi } the</script> - Wu<body> -<input type= "button" onclick= "Test ();" Value= "test!! How to use "/> About<input type= "button" onclick= "Issupporthistorypushstate ();" value= "Determines whether the browser supports history.pushstate"/> $</body> -!! The use