1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < title > 测试页面</ title >
6
+ </ head >
7
+ < body >
8
+ < table id ='buy ' border ='1 '>
9
+ < tr >
10
+ < td > 选择</ td >
11
+ < td > row1购买产品</ td >
12
+ < td > 购买数量</ td >
13
+ </ tr >
14
+ < tr >
15
+ < td > < input type ="checkbox " id ="CheckAll1 " name ="CheckAll "/> </ td >
16
+ < td >
17
+ < input type ='text ' size ='6 ' id ='ProductName ' name ='ProductName ' value ='1 '> PrdName</ td >
18
+ < td >
19
+ < input type ='text ' size ='6 ' id ='Quantity ' name ='Quantity '> Qnt</ td >
20
+ </ tr >
21
+ < tr >
22
+ < td > < input type ="checkbox " id ="CheckAll2 " name ="CheckAll "/> </ td >
23
+ < td > row3< button type ='button ' id ='payin ' name ='payin ' onclick ='alert("您好:"+prompt("请输入您的名字","")); '> 输入</ button > </ td >
24
+ < td > < button type ='button ' id ='pay ' name ='pay ' onclick ='alert("付款"); '> 付款</ button > alert </ td >
25
+ </ tr >
26
+ < tr >
27
+ < td > < input type ="checkbox " id ="CheckAll3 " name ="CheckAll "/> </ td >
28
+ < td > 测试表格</ td >
29
+ < td > 购买< button type ='button ' id ='paycon ' name ='paycon ' onclick ='con(); '> 确认</ button > confirm </ td >
30
+ </ tr >
31
+ </ table > < p />
32
+ < input id ='file ' size ="0 " type ="file " single > < p />
33
+ < input type ="button " id ="choose " onmousemove ="move(event) " value ="请选择文件 " size ="30 " /> < p />
34
+ < input type ="file " id ="f " name ="f " onchange ="re() " style ="position:absolute; filter:alpha(opacity=0); opacity:0; width:30px; " size ="1 " />
35
+ < p /> < div id ="r "> </ div >
36
+ < br /> < br /> < br /> < br /> < br /> < br />
37
+ < p />
38
+ < a href ='{{url_for( 'static ', filename='text.rar ')}} ' > 下载测试</ a > < p />
39
+ < p />
40
+
41
+ <!--form method="post" action="http://localhost/" enctype="multipart/form-data"-->
42
+
43
+ < script type ="text/javascript ">
44
+ function move ( event ) {
45
+ var event = event || window . event ;
46
+ var a = document . getElementById ( 'f' ) ;
47
+ a . style . left = event . clientX - 50 + 'px' ;
48
+ a . style . top = event . clientY - 10 + 'px' ;
49
+ }
50
+ function re ( ) {
51
+
52
+ var a = document . getElementById ( 'f' ) ;
53
+ //alert(a.value);
54
+ document . getElementById ( 'r' ) . innerHTML = a . value ;
55
+ }
56
+ function con ( ) {
57
+ confirmtext = confirm ( "确认么?" ) ;
58
+ document . getElementById ( 'r' ) . innerHTML = confirmtext ;
59
+ }
60
+ </ script >
61
+
62
+ <!--/form-->
63
+
64
+ </ body >
65
+ </ html >
0 commit comments