我有一个 64 位的 Windows 10 并安装了 2019 社区版 Visual Studio。当我在 Windows 中搜索“x64”时,只有一个 x86 开发人员命令提示符和一个 PowerShell 提示符。
我该怎么做才能获得 Visual Studio 2019 的 x64 开发人员命令提示符?
Elm 新手可以帮助我理解为什么此代码返回我的错误“无法加载页面”?我很确定这与返回的 JSON 数据有关,我还没有弄清楚如何管理它。
基本上我是 Elm 的新手,并希望通过使用来自免费 API 的更多 JSON 数据来更进一步,任何人都可以伸出援手吗?
import Browser
import Html exposing (Html, text, pre)
import Http
-- MAIN
main =
Browser.element
{ init = init
, update = update
, subscriptions = subscriptions
, view = view
}
-- MODEL
type Model
= Failure
| Loading
| Success String
init : () -> (Model, Cmd Msg)
init _ =
( Loading
, Http.get
{ url = "http://api.openweathermap.org/data/2.5/weather?q=naples&APPID=mykey"
, expect = Http.expectString GotText
}
)
-- …Run Code Online (Sandbox Code Playgroud)