2013-12-22 49 views

回答

1

您必須使用innerHTML屬性,這樣

console.log(anchorobject.innerHTML); 
2

做到這一點:

//incorrect 
anchorobject.value; 

//correct 
anchorobject.innerHTML;