属性 - Properties

  • String.length
  • String.prototype

方法 - Methods

  • String.fromCharCode() - 静态方法根据 Unicode 编码中的序号值序列来返回一个字符串
  • String.fromCodePoint()
  • String.prototype.anchor() - 创建一个 ‘a’ HTML 元素,参数作为 name 属性值
  • String.prototype.big()
  • String.prototype.blink()
  • String.prototype.bold()
  • String.prototype.charAt() - 返回字符串中指定位置的字符
  • String.prototype.charCodeAt() - 返回指定索引处字符的 Unicode 数值
  • String.prototype.codePointAt()
  • String.prototype.concat() - 将一个或多个字符串与原字符串连接合并,返回新字符串
  • String.prototype.endsWith() - 判断当前字符串是否以给定子字符串结尾
  • String.prototype.fixed()
  • String.prototype.fontcolor()
  • String.prototype.fontsize()
  • String.prototype.includes()
  • String.prototype.indexOf() - 返回指定值首次出现位置
  • String.prototype.italics()
  • String.prototype.lastIndexOf() - 返回指定值最后出现位置
  • String.prototype.link() - 创建一个 ‘a’ HTML 元素,参数作为超链接
  • String.prototype.localeCompare()
  • String.prototype.match() - 当字符串匹配正则表达式时,提取匹配项
  • String.prototype.normalize()
  • String.prototype.quote()
  • String.prototype.repeat()
  • String.prototype.replace() - 用新值替换匹配项
  • String.prototype.search() - 查找匹配项的位置
  • String.prototype.slice() - 提取字符串中一部分
  • String.prototype.small()
  • String.prototype.split() - 根据分割符把 String 对象分割成字符串数组
  • String.prototype.startsWith() - 判断当前字符串是否以给定子字符串开头
  • String.prototype.strike()
  • String.prototype.sub()
  • String.prototype.substr() - 返回字符串中从指定位置开始到指定长度的子字符串
  • String.prototype.substring() - 字符串两个索引之间的子字符串
  • String.prototype.sup()
  • String.prototype.toLocaleLowerCase() - 转换成小写,规则根据任何本地化特定的大小写映射
  • String.prototype.toLocaleUpperCase() - 转换成大写,规则根据任何本地化特定的大小写映射
  • String.prototype.toLowerCase() - 转为小写
  • String.prototype.toSource()
  • String.prototype.toString() - 返回指定对象的字符串形式
  • String.prototype.toUpperCase() - 转为大写
  • String.prototype.trim() - 删除字符串两端的空白字符
  • String.prototype.trimLeft()
  • String.prototype.trimRight()
  • String.prototype.valueOf() - 返回一个 String 对象的原始值
  • String.prototype[@@iterator]()
  • String.raw()

参考