javascript change innerhtml

前端 未结 7 1903
逝去的感伤
逝去的感伤 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:42

    using .innerHTML is non-standard, and a terrible practice for many reasons. you should create a new element using the proper standard methods and and add it to the tree where you want it

提交回复
热议问题