js-weather-api-london-web-060418

时间:2021-04-30 08:36:18
【文件属性】:
文件名称:js-weather-api-london-web-060418
文件大小:50KB
文件格式:ZIP
更新时间:2021-04-30 08:36:18
JavaScript 可视化温度 目标 建立一个页面,该页面使用“数据使用绘制折线图。 它看起来应该像下面的图片。 了解如何使用fetch存来保持数据最新。 使用JavaScript可视化库。 指示 注册一个帐户以生成Weather Underground API密钥。 您将使用此密钥进行API调用。 您将使用可视化来自Weather Underground的JSON,因此请进行检查。 在HTML文件的开头需要Chart.js库。 通过在浏览器的控制台中键入Chart仔细检查您是否正确需要该库。 应该返回一个函数,而不是“ undefined”。 (注意,您应该要求我们存储在js/vendor目录中的Chart.JS版本) 需要weatherChart.js ,你需要jQuery和chart.js之线下方。 在init.js ,创建一个变量API_KEY ,并将其定义为Weather Undergro
【文件预览】:
js-weather-api-london-web-060418-master
----.gitignore(22B)
----LICENSE.md(1KB)
----CONTRIBUTING.md(2KB)
----js()
--------init.js(520B)
--------vendor()
--------weatherChart.js(254B)
----css()
--------.keep(0B)
----spec()
--------weatherChartSpec.js(7KB)
--------helpers()
--------.keep(0B)
----README.md(2KB)
----index.html(165B)
----requires.yml(259B)
----.learn(122B)

网友评论