-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCalculator.html
42 lines (42 loc) · 1.27 KB
/
Calculator.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>日历</title>
<link rel="stylesheet" href="src/css/style.css">
</head>
<body>
<div id="myThe1">
<table class="the-bin-calculator">
<thead class="the-bin-calculator-thead"></thead>
<tbody class="the-bin-calculator-tbody"></tbody>
<tfoot class="the-bin-calculator-tfoot"></tfoot>
</table>
</div>
<div>
<div id="myThe2">
<table class="the-bin-calculator">
<thead class="the-bin-calculator-thead"></thead>
<tbody class="the-bin-calculator-tbody"></tbody>
<tfoot class="the-bin-calculator-tfoot"></tfoot>
</table>
</div>
</div>
<script type="module">
import TheBinCalculator from './src/theBinCalculator.js';
onload=()=> {
new TheBinCalculator({
el:document.getElementById('myThe1'),
tfootButton:function (e) {
//按钮点击事件
console.log(e);
return 1;
}
});
new TheBinCalculator({
el:document.getElementById('myThe2')
});
}
</script>
</body>
</html>