行使这一职能: if (document.getElementById(elemento).innerHTML.indexOf('✔')>0){
document.getElementById(elemento).innerHTML=document.getElementById(elementodocument.getElementById(elemento).
我是JS的初学者。我正在一个网站上使用一些JavaScript,我只想使用JS的一个文件来确定页面上的操作。Get the name of the document that called registerEvents function.switch(NameOfHTMLDocument) case:"homepage":