xhr.onreadystatechange = function() {
if(this.readyState == this.HEADERS_RECEIVED) {
var headers = xhr.getAllResponseHeaders(); // Тут заголовки
}
}
xhr.send();
var send = XMLHttpRequest.prototype.send;
XMLHttpRequest.prototype.send = function() {
this.addEventListener('readystatechange', function() {
// тут добавляем сравнение текущего урла this.responseURL, чтобы обрабатывались только запросы, которые начинаются на такую строку
if (this.readyState === 4 && this.responseURL.startsWith('https://zakup.sk.kz/eprocpko/api/nomenclatures?search')) {
console.warn(this.getAllResponseHeaders());
}
}, false);
send.apply(this, arguments);
};
[int]$Speed=6# тут скорость
$MethodDefinition = @"
[DllImport("user32.dll", EntryPoint = "SystemParametersInfo")]
public static extern bool SystemParametersInfo(uint uiAction, uint uiParam, uint pvParam, uint fWinIni);
"@
$User32Set = Add-Type -MemberDefinition $MethodDefinition -Name "User32Set" -Namespace Win32Functions -PassThru
$User32Set::SystemParametersInfo(0x0071,0,$Speed,0) | Out-Null
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name MouseSensitivity -Value $Speed
[int]$Speed=10 # тут скорость
$MethodDefinition = @"
[DllImport("user32.dll", EntryPoint = "SystemParametersInfo")]
public static extern bool SystemParametersInfo(uint uiAction, uint uiParam, uint pvParam, uint fWinIni);
"@
$User32Set = Add-Type -MemberDefinition $MethodDefinition -Name "User32Set" -Namespace Win32Functions -PassThru
$User32Set::SystemParametersInfo(0x0071,0,$Speed,0) | Out-Null
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name MouseSensitivity -Value $Speed
.query {}
.query {} // больше приоритет, т.к. она ниже
div.query {} // используется этот, т.к. селектор "подробнее".
.query {}
console.time('algo1');
//.. алгоритм 1
console.timeEnd('algo1');
console.time('algo2');
//.. алгоритм 2
console.timeEnd('algo2');
var obj = {
test() {
console.log(this);
}
}(obj.test)()
var obj = {
test() {
console.log(this);
}
}();
var obj = ({
test() {
console.log(this);
}
}(obj.test)());
({a: 10}())
var obj = {
test() {
console.log(this);
}
};
(obj.test)()
placemark.events.add('click', function(e) {
// Вывести в консоль координаты метки
console.log(e.get('coords'));
// Передать переменные в компонент "InformationWindow"
this.visible = true;
this.incidents = response.data[item];
});
placemark.events.add('click', (e) => {
// Вывести в консоль координаты метки
console.log(e.get('coords'));
// Передать переменные в компонент "InformationWindow"
this.visible = true;
this.incidents = response.data[item];
});