下列说法中为正确的是?(其中$为jQuery)()
A:$.trim(str)可以去掉str两端的空格
B:运行alert(’abcdefg’.substring(2,5))会弹出’cde’
C:运行alert(’abcdefg’.substr(2,5))会弹出’cde’
D:运行alert(newDate(’2018-12-01’).getMonth())会弹出12
出自:蓝鲸认证