微信开发者工具 报错:“VM478:1 Failed to load local image resource 路径,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)”解决方案
微信小程序 报错“ the server responded with a status of 500 (HTTP/1.1 500 Internal Server Error)”解决方案 系统提示渲染层网络层错误,通过对比自己的源码和错误提示,发现是图片的路径出现了问题。
源码:
<view class="inputView">
<image class="nameImage" src="../images/name.png"></image>
<label class="loginLab">账号</label>
<input class="inputText" placeholder="请输入账号" bindinput="phoneInput" />
</view>
错误提示:
Failed to load local image resource /pages/images/loginLog.jpg
通过查看图片实际所在位置,发现文件夹pages下并没有images文件。
解决方案:
1. 在文件夹pages下的accouts里面新建一个images,并将登录页面所用到的3张图片保存到images里面。
微信小程序 报错“ the server responded with a status of 500 (HTTP/1.1 500 Internal Server Error)”解决方案 2.重新编译后,登录页面的图片正常加载出来,错误解决!
微信小程序 报错“ the server responded with a status of 500 (HTTP/1.1 500 Internal Server Error)”解决方案