📜  从 url c# 获取 json - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:44.205000             🧑  作者: Mango

代码示例1
Use the WebClient class in System.Net.
Keep in mind that WebClient is IDisposable, so you would probably add a using
statement to this in production code. This would look like:

using (WebClient wc = new WebClient())
{
   var json = wc.DownloadString("url");
}