将字串s中的所有字母变为小写字母的方法是()。
A:s.toSmallCase()
B:s.toLowerCase()
C:s.toUpperCase()
D:s.toUpperChars()
出自:计算机科学