2
可能重複:
How, using jQuery, might I obtain the src attribute of a HTML img element?使用jQuery獲得SRC = 「X」 價值
如何使用jQuery來獲取一個值的SRC屬性?
可能重複:
How, using jQuery, might I obtain the src attribute of a HTML img element?使用jQuery獲得SRC = 「X」 價值
如何使用jQuery來獲取一個值的SRC屬性?
$(el).attr("src")
alert($("#elem").attr("src"));