<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<!--引入 axios网络地址 axios相当于 js里的ajax-->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<div id="app">
<div v-for="item in weathers">
<div style="color:pink">{
{item.date}}</div>
<div style="color:purple">{
{item.high}}</div>
<div style="color:blue">{
{item.low}}</div>
<div style="color:gold">{
{item.type}}</div>
<hr/>
</div>
</div>
<script>
//引入axios\
var app = new Vue({
el:"#app",
data:{
weathers:""
},
vue天气预报
最新推荐文章于 2024-07-09 11:18:19 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)