微信小程序 报错“ the server responded with a status of 500 (HTTP/1.1 500 Internal Server Error)”
微信小程序 报错“ the server responded with a status of 500 (HTTP/1.1 500 Internal Server Error)”
(1)常规报错
这个真是太乌龙了,我可真是太傻了,我可以很明确的说这个报错就是指 路径不对 ! 去检查不要自信回头
(2)我这个有点搞笑 我百分之百确定我的路径是正确的,可就是一直有报错,本来想问问我们班大佬,但是过程中突然自己想明白了,废话结束
我的程序是这样的
1.做了一个地区选择器,并设置了触发事件
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2.我的函数调用新的函数来修改我 data 的值
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3.我是用了 和风天气 提供的接口来访问各地天气 如果成功访问 则改变 now (为了记录访问数据)的值
右图为访问到的数据
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4.吱吱吱 图片也提前放在路径中 可就是报错是什么玩意 而且 更奇怪的是图片竟然能显示出来
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
5. 原来当我首先编译的时候我data 中的now是空置 所以找不到图片 才报的错。
6666666666666,mdzz,我还是去看会闪电侠吧