2013年5月14日
摘要: 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";// 阅读全文
posted @ 2013-05-14 10:19 RocZhang 阅读(2438) 评论(0) 推荐(0) 编辑