摘要:
http://stackoverflow.com/questions/263965/how-can-i-convert-a-string-to-boolean-in-javascriptThe first answer from the answer list:You should probably be cautious about using these two methods for your specific needs:var myBool =Boolean("false");// == truevar myBool =!!"false";// 阅读全文