toLowerCase toLowerCase() 把一个字符串全部变为小写: var s = 'Hello'; var lower = s.toLowerCase(); // 返回'hello'并赋值给变量lower lower; // 'hello'