我试着运行下面的代码,但是addEventListner不工作,然后我发现它不能与window.onload一起工作,所以我把它注释掉了,但我不知道为什么?还是我搞错了?// window.onload = () => {
// if (sessionStorage["firstCountry"] !`<div> First country is: ${sessionStorage["firstCountry&
我也改变了函数的名称和变量,但是唯一发生的事情是,只有一个文本消失了,这取决于其中一个在另一个下面的顺序。没有褪色的,甚至没有出现。希望你能理解,找到和发现。谢谢。The higher the number, the slower the fade }
window.onloadThe higher the number, the slower the fade