• anchor / small / big / fontsize / blink / bold / italics / strike
    都是用来创立标签

    // 增加锚点用的const txt="context";const htmla = txt.anchor("maodian");console.log(htmla); // <a name="maodian">context</a>const worldString = 'Hello, world';console.log(worldString.small());     // <small>Hello, world</small>console.log(worldString.big());       // <big>Hello, world</big>console.log(worldString.fontsize(7)); // <font size=7>Hello, world</font>// 用来润饰字符串const worldString = 'Hello, world';console.log(worldString.blink());   // <blink>Hello, world</blink>console.log(worldString.bold());    // <b>Hello, world</b>console.log(worldString.italics()); // <i>Hello, world</i>console.log(worldString.strike());  // <strike>Hello, world</strike>
  • at / charAt / charCodeAt

    // 传入角标,返回一个新的字符串const txt="text";const txt1= txt.at(2);console.log(txt,txt1); // text xconst txt="text";const txt1= txt.charAt(2);console.log(txt,txt1); // text x// charCodeAt() 办法返回 0 到 65535 之间的整数,示意给定索引处的 UTF-16 代码单元const txt="text";const txt1= txt.charCodeAt(2);console.log(txt,txt1); // text 120
  • codePointAt

    // codePointAt() 办法返回 一个 Unicode 编码点值的非负整数。const txt="text";const txt1= txt.codePointAt();console.log(txt1); // 116
  • concat

    // concat 字符串链接。const txt="text";const txt1= "text2";console.log(txt.concat(txt1)); // texttext2

    吃饭回来持续~