A
Size: a a a
A
KZ
RT
A
KZ
TS
VM
TS
V
TS
M
var a = new URL('https://google.com/');
a.port = 80;
80
> console.log(a)
URL {
href: 'https://google.com:80/',
origin: 'https://google.com:80',
protocol: 'https:',
username: '',
password: '',
host: 'google.com:80',
hostname: 'google.com',
port: '80',
pathname: '/',
search: '',
searchParams: URLSearchParams {},
hash: ''
}
> a.port = 443;
443
> console.log(a)
URL {
href: 'https://google.com/',
origin: 'https://google.com',
protocol: 'https:',
username: '',
password: '',
host: 'google.com',
hostname: 'google.com',
port: '',
pathname: '/',
search: '',
searchParams: URLSearchParams {},
hash: ''
}
AP
var a = new URL('https://google.com/');
a.port = 80;
80
> console.log(a)
URL {
href: 'https://google.com:80/',
origin: 'https://google.com:80',
protocol: 'https:',
username: '',
password: '',
host: 'google.com:80',
hostname: 'google.com',
port: '80',
pathname: '/',
search: '',
searchParams: URLSearchParams {},
hash: ''
}
> a.port = 443;
443
> console.log(a)
URL {
href: 'https://google.com/',
origin: 'https://google.com',
protocol: 'https:',
username: '',
password: '',
host: 'google.com',
hostname: 'google.com',
port: '',
pathname: '/',
search: '',
searchParams: URLSearchParams {},
hash: ''
}
M
SK
M
IG
if (file === '')
IG
IG
/
идти пустая строка?IG
/
должно идти имя файла. В дефолтный роут */
после слэша просто подставится замапленный файл. Выходит, что код может и не выполнится никогда. Я правильно понимаю?