javascript change innerhtml

前端 未结 7 2026
逝去的感伤
逝去的感伤 2021-02-13 04:04

ok im new at javascript, but im trying to change the innerhtml of a div tag, heres my script and its not working:




        
7条回答
  •  不要未来只要你来
    2021-02-13 04:35

    Your example will work if you change the uppercase "L" to a lowercase "L" in "onLoad" and remove the parenthesis after var1 where you currently have window.onLoad = var1();

提交回复
热议问题