jquery.html(content)方法中,“content"中能否嵌入ejs的 “<% include component.ejs %>”标签?
发布于 7 年前 作者 hcyhehe 3206 次浏览 来自 问答

jquery.html(content)方法中,“content"中能否嵌入ejs的 “<% include component.ejs %>”标签? 出来的结果是 “<% include component.ejs %>”这段在html页面变成了字符串,这个要怎么破 各位仁兄,各位大神,求救啊

2 回复
jquery.html(new EJS({url: '/component.ejs'}).render(data)) 

@godghdai Uncaught TypeError: ejs is not a function 返回这个错误,请问这个怎么破?能详细一些吗,谢谢啦~

回到顶部