Večvrstne spremenljivke niza v JavaScript - CSS-triki

Anonim

To deluje:

var htmlString = " This is a string. ";

To ne uspe:

var htmlSTring = " This is a string. ";

Včasih je to zaželeno zaradi berljivosti.

Dodajte poševnice nazaj, da bo deloval:

var htmlSTring = " \ This is a string.\ ";