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.