Simple html vs Javascript generated html?

前端 未结 12 1578
故里飘歌
故里飘歌 2020-12-30 13:09

In my web application I would like to complately avoid html and use only javascript to create web-page\'s dom tree.

What is faster writing web content in the traditi

12条回答
  •  悲&欢浪女
    2020-12-30 13:46

    Stick with the traditional HTML. It's not only faster than doing everything with javascript, it's much more maintainable.

    Unless there is a compelling reason otherwise, stick with the straight up HTML and use javascript for the more interactive pieces of your app.

提交回复
热议问题