单项选择题

下面哪个方法可以将字符转换成小写字母?()

A.substr()
B.toLowerCase()
C.indexOf()
D.toUpperCase()