当前位置:网站首页>微信开发者工具程序开发好后,不报错,但是黑屏「建议收藏」
微信开发者工具程序开发好后,不报错,但是黑屏「建议收藏」
2022-08-09 15:37:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
我的情况是将在webStorm上开发的代码复制到微信开发者工具上时,经简单修改后不报错了但是界面黑屏,
找了一段时间发现是图片资源的路径没有设置正确。如下:
这是在微信开发者工具上的情况:
其实在webStrom上的路径是:
['rock','../res/Rock.png'],
这也是我们在做比如java开发时路径写法,../表示回到上一级目录,在webStorm上没有问题,但是在微信开发者工具上却不能有../
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/106035.html原文链接:https://javaforall.cn
边栏推荐
猜你喜欢
随机推荐
Chapter 1: GEE and GEEMAP
【嵌入式入门篇】嵌入式0基础沉浸式刷题篇1
1. Introducing GEE and Geemap
Leading practice | How the world's largest wine app uses design sprint to innovate the vivino model
ESP8266-Arduino编程实例-MQ-5液化天然气传感器驱动
PHP 补全日期区间中缺少的日期/返回缺少的日期
Anatomy of Storage Size, Value Range, and Output Format of Basic Data Types in C Language
【Web渗透】信息收集篇——Google搜索引擎(一)
Chapter 5: Visualizing Geospatial Data
Leetcode——3.无重复字符的最长字串
网络——虚拟专用网和地址转换NAT
uniapp 项目搭建
Codeforces Round # 806 (Div. 4) | | precipitation) bloodbath wudaokou
分布式恢复【进阶篇】
Smart Light Pole Gateway Smart Transportation Application
智慧灯杆网关智慧交通应用
C语言扫雷
0. About The Author And Preface
5G NR Paging
2022年华数杯C题插层熔喷完整解题思路(附代码+详细讲解视频)