0
내 profilearea.ejs 파일에 게시 객체의 값을 표시하려고합니다. 그러나 profilearea.ejs로 렌더링하면 "post is 정의되지 않았습니다 ". 여기 res.render 객체를 전달하면 .ejs 파일에서 정의되지 않음
이 내가 문제의 일부가 개체에 앞서를 stringifying하지에있을 수 있습니다 생각<section id="notification" data-role="page" >
<header data-role="header" data-theme="b"><h2>INFORMATION</h2></header>
<div data-role="content">
<p> <%= post%> </p>
</div>
</section>
이 나에게 올바른 보인다. console.log (post)는 res.render() 직전에 무엇을 제공합니까? – chovy
이것은 모든 값을 가진 완벽한 객체를 제공합니다.이 작업은 – ana
을 제거하면 <%= post %> 페이지가 작동합니까? – chovy