addedit.html
<% include layout.html %>
<form method="post" action="<%=postpath%>">
<% if (note){ %>
<input type="hidden" name="id" value="<%=note.ts%>" />
<% } %>
<input type="text" name="author" value="<%=note.author%>" />
<br/>
<textarea rows="5" cols="40" name="note">
<%=note.note%>
</textarea>
<br/>
<input type="submit" value="Submit" />
</form>login.html
<% include layout.html %>
<form method="POST" action="/login">
<p>Click the <i>Login</i> to log in.</p>
<input type="submit" value="Login" />
</form>node setup.js
node app.js




希望本文所述对大家nodejs程序设计有所帮助。









