-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprojet.html
39 lines (39 loc) · 1.27 KB
/
projet.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div id="ell">
<div>
<table>
<tr>
<th v-for="titre in head">{{titre}}</th>
</tr>
<tr v-for="elev in eleve">
<td v-for="elem in elev">{{elem}}</td>
<td><button>Modifier</button></td>
<td><button>Supprimer</button></td>
</tr>
</table>
</div>
</div>
<script src="vue.js"></script>
<script type="text/javascript">
var vm = new Vue({
el : "#ell",
data : {
head : ["Nom de l'élève","Numero de l'élève ","Note de math",'Note de phys'],
eleve : [
{numEt : "4456" , nom : "Andry", note_math : 15 , note_phys : 15},
{numEt : "645645" , nom : "Ary", note_math : 15 , note_phys : 15},
{numEt : "456" , nom : "Leo", note_math : 15 , note_phys : 15},
{numEt : "456" , nom : "Pen", note_math : 15 , note_phys : 15},
]
}
})
</script>
</body>
</html>