Can someone explain what the document.getElementById(\"demo\") line does in the example below?
document.getElementById(\"demo\")
I understand getElementById gets the id of demo but the id is
Here in your code demo is id where you want to display your result after click event has occur and just nothing.
demo
You can take anything
or
It is just node in a document where you just want to display your result. 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
It is just node in a document where you just want to display your result.