Content-Type: application/json
можно посылать запрос как text/plain
.application/json
это опасно. For example, if we run the following script which is not within an I/O cycle (i.e. the main module), the order in which the two timers are executed is non-deterministic, as it is bound by the performance of the process: [...]
However, if you move the two calls within an I/O cycle, the immediate callback is always executed first:
constructor
. Подозреваю что вы делаете это в консоли браузера и переменную эту никогда не объявляли, поэтому JS выдаст вам свойство constructor
глобального объекта. В данном случае это будет window.constructor
который конечно же никакого отношения к вашей функции Func не имеет.constructor
имеет смысл смотреть у экземпляра объекта, а не у класса.let f = new Func();
console.log(f.constructor === Func) // true
@-moz-document url-prefix("chrome://devtools/content/") {
:root {
--theme-body-font-size: 13px !important;
--theme-code-font-size: 13px !important;
--theme-code-line-height: 1.2 !important;
--monospace-font-family: 'Hack', monospace !important;
}
}
\
) после Report
$ cat distr.sed
1 i\
\
Linux Distributions Report
s/\([0-9]\{2\}\)\/\([0-9]\{2\}\)\/\([0-9]\{4\}\)$/\3-\1-\2/
y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/
$ sed -f distr.sed distr.txt
Linux Distributions Report
SUSE 10.2 2006-12-07
FEDORA 10 2008-11-25
SUSE 11.0 2008-06-19
UBUNTU 8.04 2008-04-24