单项选择题

获得个字符串变量txt第一个字符X的位置的正确语句为()。

A.txt.countTo(X?)
B.txt.locate(X?)
C.txt.find(X?)
D.txt.in dexOf(X?)

微信扫码免费搜题