2014-09-20 26 views
0

如何使用jQuery從此代碼獲取地址?從自定義標記中獲取文本

<span property="v:street-address">2 Macdonald street</span> 

謝謝。

+0

究竟是什麼問題?獲取文本或選擇元素?這兩件事都已經被問到了。 – 2014-09-20 15:53:40

+0

https://api.jquery.com/text/ – 2014-09-20 15:57:10

回答

1
$("span[property='v:street-address']").text() 
相關問題