单项选择题

A.$("img").getAttribute("src")
B.$("img").attr("src")
C.$("img").attr("src","")
D.$("img").getAttr("src")