Templates in JS?

前端 未结 4 977
花落未央
花落未央 2021-01-17 03:55

All we like simple, structured code that is easy to comply with. We try to bring a difference between appearance and logics. In PHP, for instance, we can use a template mech

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-17 04:41

    Underscore.js has simple templating mechanism as well. (And I think it must be in every javascript developer's toolbox).

    jQuery's is more sophisticated, though - and probably more useful (Update: but now is deprecated).

提交回复
热议问题