fetch('https://jsonplaceholder.typicode.com/posts', {
method: 'POST',
body: JSON.stringify({
title: 'foo',
body: 'bar',
userId: 1
}),
headers: {
'Content-type': 'application/json; charset=UTF-8'
}
})
.then(res => res.json())
.then(console.log)
fetch('https://jsonplaceholder.typicode.com/posts/1')
.then(res => res.json())
.then(console.log)
Code Example |
---|
Css :: css negative padding |
Css :: scss color black white |
Css :: col-md-6 bootstrap |
Css :: tampermonkey custom css |
Css :: translate css property |
Css :: how to use nth-child |
Css :: border radius css |
Css :: how to get text to auto break in a grid |
Css :: scss color loop |
Css :: feature detect css |
Css :: para que sirve justify-content-center |
Css :: print zend db select query to string |
Css :: animation clip path |
Css :: css not working |
Css :: css rotate |
Css :: css padding property |
Css :: css footer always at bottom but visible |
Css :: disable all animation divi for mobile |
Css :: how to change a checkbox to be selected |
Css :: text vs font properties in css |
Css :: font weight numbers |
Css :: css slick js load slider jump |
Css :: CSS The object-fit Property |
Css :: css styles responsive password input eye |
Css :: background remover |
Css :: svg tailwind |
Css :: modern css reset |
Css :: adminlte.min.css.map error |
Css :: Responsive Web Design - Media Queries |
Css :: css border sides |