ITPub博客

首页 > 应用开发 > > express用ejs模板传参问题

express用ejs模板传参问题

作者:chinacc 时间:2019-10-08 15:00:34 0 删除 编辑

当我传参的用下面代码,得到的是一堆div什么什么的,但是是字符串

<%= include ('../compontents/everyInfor.html',{ data: data })%>

当我把=号改为-的时候<%- include ('../compontents/everyInfor.html',{ data: data })%>

出现

Could not find the include file "(&#39;../compontents/wap-footer&#39;,{data:data });"

什么问题,转义了,,,怎么搞

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4677/viewspace-3143419/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 请读程序: main()
请登录后发表评论 登录
全部评论

注册时间:2019-04-26

  • 博文量
    91
  • 访问量
    917