Wie Sie ein var href

Brauche ich so etwas wie dieses:

var link = " http://www.google.com";

<a href='link' />

Also brauche ich eine variable verwenden, wie href attribue ein link. Ist das möglich?

Er arbeitete mit "<a href= '" + link + "' />". Gibt es einen besseren Weg?

InformationsquelleAutor msheshtawy | 2010-01-23

Schreibe einen Kommentar