为什么本地图片会概率性渲染不出来?

小程序 文章 2020-09-03 12:01 556 0 全屏看文

AI助手支持GPT4.0

为什么本地图片会概率性渲染不出来?Why are local pictures not rendered probabilistically?

为什么本地图片会概率性渲染不出来?

最近出现一个很奇怪的问题,工具箱里的这些菜单项,图片都是用的本地图片,写法都是一模一样的,但是有时候某些图片渲染不出来(不是固定哪几张出不来,而是随机的某些图片出不来)。以前都不会,近一两个月开始,才会概率性出现。

菜单项的布局代码都是一模一样的写法,具体wxml代码如下:

 

    Wi-Fi设置

   

    Wi-Fi分享

   

    游戏加速

   

    设备列表

Recently, a as like as two peas, the pictures and the pictures in the toolbox are all the same, but sometimes they are not alike. But sometimes some pictures can not be rendered (not fixed, which is not to be found, but some random pictures are not coming out). In the past, it would not happen until a month or two ago. As like as two peas, the layout code of menu item is exactly the same. The specific wxml code is as follows: Wi-Fi set Wi-Fi to share game, speed up device list.

回答:

🙄:

我以前也出现过,但我是用远程的图片,并且没有写协议名http和https,而是用 // 开头的方法自动适配,导致随机几张图片出不来,建议你看看路径的问题

迷失的故渊:

不是加载慢的问题吧 图片会报错吗

微喵网络:

弄一个 [ 能复现问题的简单的 ] 代码片段

https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

-EOF-

AI助手支持GPT4.0