8-3 WPS JS宏 replace、toLowerCase、toUpperCase、trimStart、trimLeft、trimEnd、trimRight、trim、padEnd、padStar
一、函数
replace:
查找替换(支持正则)
语法:字符串.replace(查找字符串,替换字符串)
toLowerCase:
转换为小写
语法:字符串.toLowerCase()
toUpperCase:
转换为大写
语法:字符串.toUpperCase()
trimStart:
清除前侧
语法:字符串.trimStart()
trimLeft:
清除左侧
语法:字符串.trimLeft()
trimEnd:
