阅读背景:

nodejs实现简单的评论功能

来源:互联网 
1. 创建一个表单页面
<!DOCTYPE html><html><head><title>Test Ajax</title><meta charset="utf-8"/><link rel="stylesheet" href="/go.html?url=style.css"/><script src="../jquery-3.0.0.js"></script></head><body><form id="form1" action="#"><p>Comment</p><p><label for="name">name:</label><input type="text" id="name" type="name" value="chengzhen"/></p><p><label for="content">content</label><input type="text" id="content" name="content" value="Hello"/></p><p><button type="button" id="send">send</button></p></form><div id="comments"><h6>chengzhen</h6><p>This is a good afternoon</p><h6>libai</h6><p>Never stop learning</p><h6>dufu</h6><p>Believe in yourself</p><h6></h6><p></p></div><script src="./action.js"></script></body></html><!DOCTYPE html><html><head><title



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: