摘要: url中不能带有中文, 所有在url中拼接字符串的时候, 要先对中文进行编码 encodeURI() 函数可以把字符串作为uri编码 let cityName = encodeURI('武汉') fetch(`http://v.juhe.cn/weather/index?&cityname=${ci 阅读全文
posted @ 2019-01-15 18:22 noraZhang 阅读(439) 评论(0) 推荐(0) 编辑