JavaScript String sup() 方法

定義和用法

String big() 在 JavaScript 中已被棄用。

JavaScript 中不推薦使用字符串 sup()。

請避免使用它。

它可能隨時停止在您的瀏覽器中運行。

sup() 方法返回嵌入在 <sup> 標記中的字符串:

<sup>string</sup>

實例

let text = "Hello World!";
let result = text.sup();

親自試一試

語法

string.sup()

參數

無參數。

返回值

<sup> 標簽中嵌入的字符串。