当前位置:网站首页>After the WeChat developer tool program is developed, no error is reported, but the black screen "recommended collection"
After the WeChat developer tool program is developed, no error is reported, but the black screen "recommended collection"
2022-08-09 18:22:00 【Full stack programmer webmaster】
Hello everyone, meet again, I'm your friend Quanstack Jun.
In my case the code developed on webStorm was copied to WeChat developerstool, no error is reported after simple modification, but the interface is black,
After searching for a while, I found that the path of the image resource was not set correctly.As follows:
This is the case on WeChat Developer Tools:
Actually the path on webStrom is:
['rock','../res/Rock.png'],
This is also the way we write the path when we are doing Java development. ../ means to go back to the previous directory. There is no problem on webStorm, but it cannot have ../ on the WeChat developer tool.
Publisher: Full-stack programmer, please indicate the source: https://javaforall.cn/106035.htmlOriginal link: https://javaforall.cn
边栏推荐
猜你喜欢
领先实践|全球最大红酒App如何用设计冲刺创新vivino模式
图像几何校正
5G NR Paging
uniapp project construction
网络——IPV4地址(一)
智慧灯杆网关智慧交通应用
推荐一些面向 Web 开发者的杀手级网站
Detailed explanation of three pieces in C language
ESP8266-Arduino编程实例-MQ-5液化天然气传感器驱动
Heap series_0x09: Example of heap corruption (illegal access + uninitialized + heap handle mismatch)
随机推荐
Heap series_0x0A: 3 methods to solve the heap overflow problem at once
Swagger2 knife4j NullPointerException 空指针问题
【Web渗透】信息收集篇——Google搜索引擎(二)
margin:auto实现盒子水平垂直居中
一个程序员的水平能差到什么程度?
2019强网杯高明的黑客
PHP 补全日期区间中缺少的日期/返回缺少的日期
Super hot summer air conditioner
OpenCV 图像变换之 —— 直方图均衡化
网络——ARP、DHCP、ICMP协议
Chapter 2: Creating Interactive Maps (2.4-2.6)
无需支付688苹果开发者账号,xcode13打包导出ipa,提供他人进行内测
[1413. Stepwise summation to get the minimum value of positive numbers]
AVL树的插入操作
中科院打脸谷歌:普通电脑追上量子优越性,几小时搞定原本要一万年的计算...
The web project accesses static resources inside the jar
uni-app覆盖组件样式h5生效,微信小程序不生效的问题
Detailed explanation of three pieces in C language
SQL抖音面试题:送你一个万能模板,要吗?(重点、每个用户每月连续登录的最大天数)
ESP8266-Arduino编程实例-MQ-5液化天然气传感器驱动