Browse Source

cast id to int

Foppe Hemminga 6 năm trước cách đây
mục cha
commit
a01bc94ba4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -59,7 +59,7 @@
         $.each(data, (key, val) => {
             console.log('key:', key, ' val:', val);
             items.push( "<tr>" );
-            items.push( "<td scope=\"row\">" + key+1 + "</td>" );
+            items.push( "<td scope=\"row\">" + parseInt(key)+1 + "</td>" );
             items.push( "<td class=\""+key+"\">" + val["Datum"] + "</td>" );
             items.push( "<td class=\""+key+"\">" + val["Lijn"] + "</td>" );
             items.push( "<td class=\""+key+"\">" + val["Naam"] + "</td>" );