In a webpage I am calling a WebService that gives me an integer value. I need to display this value in a block of text. I am currently using an HTML <span>
.
So far, I've found two methods of putting my value in a span. innerText()
is an IE proprietary way of doing it and innerHTML()
is a non-standards compliant way, although widely supported.
What is the correct standards compliant way of setting the text between <span>
and </span>
from Javascript?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…