var num = "456"
parseInt(num); // 456
parseFloat(num); // 456
Number(num); // 456
var num = 456
console.log(num.toString());
indexOf() // 判断字符串是否包含,包含返回下标,不包含返回-1
var i = str.indexOf("x")
大小写转换
str.toUpperCase(); // 转大写
str.tolowerCase(); // 转小写