Task OnInitializedAsync() { forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("sample-data 这个weather.json文件位于wwwroot/sample-data目录下。
最后是1号框的wwwroot文件夹,Blazor WebAssembly多了一个sample-data目录、icon-192.png及index.html,sample-data目录是下载到浏览器的天气数据
excludeFiles": "{tests/**,__tests__/**,**/*.test.py,**/test_*.py,fixtures/**,__fixtures__/**,testdata/**,sample-data
/sample-data/role_upgrade_cfg.bin ======================== Header: . \sample-data\role_upgrade_cfg.bin ======================== xresloader version: 2.8.0 data version: 2.8.0.20200609192757 \sample-data\role_upgrade_cfg.bin -> role_upgrade_cfg ============ [ {"Id": 10001, "Level": 1},
--- 2020/5/4 12:38 css d----- 2020/5/4 12:38 sample-data
── publish/BlazorServerless | ├── dist | | ├── _framework | | ├── css | | ├── sample-data
{ // 异步获取远程api接口数据 forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("sample-data
description='A pipeline with two sequential steps.' ) def sequential_pipeline(url='gs://ml-pipeline/sample-data