[英]How do you use a variable in a regular expression and manipulate the variable?
[英]How do you manipulate the value of a variable through the use of an input text field and submit button
我目前正在尝试设置天气API,但无法更改城市。 我的网址设置方式可以控制将变量传递给地址的城市。 我无法弄清楚的是如何在用户可以使用输入和提交按钮更改变量的地方获取它。
var city ='calera';
(“ GET”, https://api.openweathermap.org/data/2.5/weather?q=
&appid=a34f9192fd6fa82116ba2227981b319a&units=imperial
+ city + &appid=a34f9192fd6fa82116ba2227981b319a&units=imperial
);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.