单项选择题

如果需要获取段落中的文本内容,用下面哪种来实现()。

A.$(“p”).text()
B.$(“p”).contains()
C.$(“p”).input()
D.$(“p”).attr(name)