charAt()

描述

找到字串中指定位置的字元。

語法


string.charAt(n)

參數

string: String 物件 (字串)
n: 指定的位置

回傳

字串中第 n 個位置所在的字元 。

See also

String
setCharAt()
[] (element access)


語法參考主頁面

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.