File tree 2 files changed +61
-18
lines changed
2 files changed +61
-18
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
+ "http://www.w3.org/TR/html4/loose.dtd">
3
+ < html >
4
+ < head >
5
+ < title > post4</ title >
6
+ < meta http-equiv ="Content-Type " content ="text/html;charset=utf-8 "/>
7
+ < style >
8
+ * { margin : 0 ; padding : 0 ;}
9
+ body { font-size : 12px ;}
10
+ .comment { margin-top : 10px ; padding : 10px ; border : 1px solid # ccc ;background : # DDD ;}
11
+ .comment h6 { font-weight : 700 ; font-size : 14px ;}
12
+ .para { margin-top : 5px ; text-indent : 2em ;background : # DDD ;}
13
+ </ style >
14
+ <!-- 引入jQuery -->
15
+ < script src ="../scripts/jquery.js " type ="text/javascript "> </ script >
16
+ < script type ="text/javascript ">
17
+ $ ( document ) . ready ( function ( ) {
18
+ $ ( "#send" ) . click ( function ( ) {
19
+ $ ( "#resText" ) . load ( "post1.jsp" , {
20
+ username : $ ( "#username" ) . val ( ) ,
21
+ content : $ ( "#content" ) . val ( )
22
+ } ) ;
23
+ } )
24
+ } )
25
+ </ script >
26
+ </ head >
27
+ < body >
28
+ < form id ="form1 ">
29
+ < p > 评论:</ p >
30
+ < p > 姓名: < input type ="text " name ="username " id ="username " /> </ p >
31
+ < p > 内容: < textarea id ="content " > </ textarea > </ p >
32
+ < p > < input type ="button " id ="send " value ="提交 "/> </ p >
33
+ </ form >
34
+
35
+
36
+ < div class ='comment '> 已有评论:</ div >
37
+ < div id ="resText " >
38
+ </ div >
39
+
40
+ </ body >
41
+ </ html >
You can’t perform that action at this time.
0 commit comments