EJS: <%= versus <%-

后端 未结 4 940
死守一世寂寞
死守一世寂寞 2020-12-15 07:26

I\'m using EJS with a Node.js web server I\'m building. I see many EJS examples that sometimes use <%= when outputting HTML or strings, while other examples

4条回答
  •  囚心锁ツ
    2020-12-15 08:06

    <%= *param* %> is use for tranfer data from view to controller and vice versa

    while <%- %> is to include other code

    For my project is

提交回复
热议问题