Код: Выделить всё
'use strict'
const uri = 'api/product';
let data = [];
function getItems() {
fetch(uri)
.then(response => response.json())
.then(data => _displayItems(data))
.catch(error => console.error('Unable to get items.', error));
}
< /code>
Программа использует путь, описанный в локальных настройках. "profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "http://localhost:5023",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
Подробнее здесь: https://stackoverflow.com/questions/796 ... -sqlserver
Мобильная версия