night-cherry 1 сар өмнө
parent
commit
2268537a75
1 өөрчлөгдсөн 5 нэмэгдсэн , 1 устгасан
  1. 5 1
      index.html

+ 5 - 1
index.html

@@ -55,7 +55,11 @@
 		<table>
 			<th>index</th><th>title</th><th>author</th><th>publisher</th><th>pages</th><th>operation</th>
 			<tr  v-for="(value,key,index) in books">
-				<td>{{value.title}}</td><td>{{value.author}}</td><td>{{value.publisher}}</td><td>{{value.pages}}</td>
+				<td>{{index}}</td>
+				<td>{{key}}-{{value.title}}</td>
+				<td>{{key}}-{{value.author}}</td>
+				<td>{{key}}-{{value.publisher}}</td>
+				<td>{{key}}-{{value.pages}}</td>
 			</tr>
 			
 		</table>