<input numeric numericType="number" type="text">
<input numeric numericType="decimal" type="text">
// Get all users | |
var url = "http://localhost:8080/api/v1/users"; | |
var xhr = new XMLHttpRequest() | |
xhr.open('GET', url, true) | |
xhr.onload = function () { | |
var users = JSON.parse(xhr.responseText); | |
if (xhr.readyState == 4 && xhr.status == "200") { | |
console.table(users); | |
} else { | |
console.error(users); |
const api = [ | |
{ id: 2, nome: 'Daniel', body: 'Meu nome é Daniel.' }, | |
{ id: 3, nome: 'Silva Santos', body: 'Confira meus sobrenomes.' }, | |
{ id: 4, nome: 'Aderbal', body: 'Dr. Aderbal Sabrá' }, | |
{ id: 5, nome: 'Aderbal', body: 'Dr. Aderbal Sabrá' }, | |
{ id: 6, nome: 'Aderbal', body: 'Dr. Aderbal Sabrá' }, | |
]; | |
const local = [ | |
{ id: 1, nome: 'Wellington', body: 'Sou o Wellington, prazer!' }, |