常用js代码
2022-07-14 本文已影响0人
小和大大
trim() //去除字符串两边的空白。
tolowercase() //将所有的英文字符转换为小写字母
toUpperCase() //将所有的英文字符转换为大写字母
encodeURIComponent() //编码 URI 。
decodeURIComponent() //可对编码的 URI 进行解码
trim() //去除字符串两边的空白。
tolowercase() //将所有的英文字符转换为小写字母
toUpperCase() //将所有的英文字符转换为大写字母
encodeURIComponent() //编码 URI 。
decodeURIComponent() //可对编码的 URI 进行解码