当前位置:网站首页>Uncaught syntaxerror: unexpected token '< is reported on the blank page of the H5 uniapp package‘
Uncaught syntaxerror: unexpected token '< is reported on the blank page of the H5 uniapp package‘
2022-07-19 01:59:00 【666 sign】
manifest.json To configure :
"router" : {
"mode" : "history",
"base" : "./"
},In this way, a blank page may appear , Then report this error :

You need to configure base route , Otherwise, static resources cannot be found ;
Use caution ./, Instead, change to the actual address of the project , If the project address is xxx.com/release/, perhaps xxx.com/release/pages/wechat/login, It is equivalent to more than one in front of the root directory release, hold base Change to your actual directory ;
"router" : {
"mode" : "history", // Route jump mode , Support hash|history , Default hash
"base" : "/release/" // Application base path , for example , If the entire single page application service is in /release/ Next , then base I should have set it equal to "/release/"
},
In this way, when accessing, you automatically add... In front of the path release 了 , And it won't happen #.
边栏推荐
猜你喜欢
随机推荐
Saber Pspice simulink电源仿真软件的区别
Fairness in Semi-supervised Learning: Unlabeled Data Help to Reduce Discrimination
Startup mode of activity
[go language] detailed explanation of dynamic library and static library
高斯分布的性质(含代码)
Leveraging Semi-Supervised Learning for Fairness using Neural Networks
数组定义格式
【文献阅读】VAQF: Fully Automatic Software-Hardware Co-Design Framework for Low-Bit Vision Transformer
S32K148EVB 关于ENET Loopback实验
Apt get update error: hash checksum does not match
【文献阅读】MCUNet: Tiny Deep Learning on IoT Devices
Second order edge detection Laplacian of Guassian Gaussian Laplacian operator
js 树状图数组批量循环操作
偏差(bias)和方差(variance)
Fairness in Deep Learning: A Computational Perspective
apt-get update报错:Hash 校验和不符
利用因果线性模型监测不公平A Causal Linear Model to Quantify Edge Unfairness for Unfair Edge Prioritization
ViLT Vision-and-Language Transformer Without Convolution or Region Supervision
14:07:08 ckati failed with: signal: killed
Xcode11添加引导页(升级后Launch Images Source选项不见了)









