<input type="number" required>
<input type="date" min="2017-04-01" max="2017-04-30">
`params` are the URL parameters to be sent with the request
Must be a plain object or a URLSearchParams object
`data` is the data to be sent as the request body
Only applicable for request methods 'PUT', 'POST', and 'PATCH'
When no `transformRequest` is set, must be of one of the following types:
- string, plain object, ArrayBuffer, ArrayBufferView, URLSearchParams
- Browser only: FormData, File, Blob
- Node only: Stream, Buffer
// Плохо
function Modal(options) {
this.open = function () {}
}
// Хорошо
function Modal(options) {
}
Modal.prototype.open = function () {}
// Лучше всего
class Modal {
open() {}
}