JavaScript if为true的情况 变量如果不为0,null,undefined,false,都会被处理为true。只要变量有非0的值或是某个对象,数组,字符串,都会认为true转载于:https://www.cnblogs.com/shiyunfront/p/7337757.html... javascript 2024-10-17 37 点赞 0 评论 56 浏览