js 每天一个小技巧 生成随机数 Math.random().toString(36).subStr(2,10); 2. 通过id去获取DOM HTML中带有 id 属性的元素,都会被全局的 ID 同名变量所引用