一、函数
replace:
查找替换(支持正则)
语法:字符串.replace(查找字符串,替换字符串)
toLowerCase:
转换为小写
语法:字符串.toLowerCase()
toUpperCase:
转换为大写
语法:字符串.toUpperCase()
trimStart:
清除前侧
语法:字符串.trimStart()
trimLeft:
清除左侧
语法:字符串.trimLeft()
trimEnd:
深耕网站建设、视觉设计与SEO优化的一线实战洞察。
一、函数
replace:
查找替换(支持正则)
语法:字符串.replace(查找字符串,替换字符串)
toLowerCase:
转换为小写
语法:字符串.toLowerCase()
toUpperCase:
转换为大写
语法:字符串.toUpperCase()
trimStart:
清除前侧
语法:字符串.trimStart()
trimLeft:
清除左侧
语法:字符串.trimLeft()
trimEnd: