“Vue 网络应用 天知道 回车查询”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) (→功能分析) |
Jihongchang(讨论 | 贡献) (→功能分析) |
||
第4行: | 第4行: | ||
# 按下回车(<u>v-on</u> <u>.enter</u>) | # 按下回车(<u>v-on</u> <u>.enter</u>) | ||
− | # | + | # 查询数据(<u>axios</u> <u>接口</u> <u>v-model</u>) |
− | # | + | # 渲染数据(<u>v-for</u> <u>数组</u> <u>that</u>) |
+ | |||
+ | === 接口 === | ||
+ | 请求地址:http://wthrcdn.etouch.cn/weather_mini | ||
+ | |||
+ | 请求方法:get | ||
+ | |||
+ | 请求参数:city(查询的城市名) | ||
+ | |||
+ | 响应内容:天气信息 |
2023年8月10日 (四) 02:14的版本
https://www.bilibili.com/video/BV12J411m7MG/?p=28
功能分析
- 按下回车(v-on .enter)
- 查询数据(axios 接口 v-model)
- 渲染数据(v-for 数组 that)
接口
请求地址:http://wthrcdn.etouch.cn/weather_mini
请求方法:get
请求参数:city(查询的城市名)
响应内容:天气信息