JS常用方法
加号运算符// 可以做到转换格式
let a = '12'
let b = + a + 12;
let c = a - 0 + 12
let d = a + 12;
console.log(b); // 24
console.log(c); // 24
console.log(d); // 1212动态绑定属性// 在with中可以操作对象的每一项
let tom = {
name: "tom",
height: 170,
sex: "男"
}
with(tom){
height++
console.lo...