一个菜鸡的心酸之路....
1. .length() 获取字符串长度
2. typeof 检测数据类型//prompt取得值是字符型
3. toString() 转为字符串
4. string() 强转
5. parseInt() 转为number型 parseFloat() //浮点型
6. Boolean() //空,否定的转为false 其余为 true
posted on 2019-10-14 21:16 白小白的日志 阅读(101) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3