logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

CDN字体跨域问题

用vue写了一个h5移动端页面,因为涉及到了很多动图所以用了腾讯云的CDN加速,但是出现了一个神奇的问题,图片类都可以使用CDN地址,但是字体文件浏览器却报了跨域错误原因是:字体文件在CDN服务器上、项目部署在后端的服务器然后解决方法是:将字体文件转成base64,这个网站可以转换记得要把这个勾上然后把里面的css,copy到自己的项目要用到的地方,就可以愉快的显示了...

#css#html
vue报错之this.$router is undefine

vue报错之this.$router is undefine最近写项目遇到这个报错,特此记录一下axios.get('/person/ticket').then(response => {this.$router.push('/ground')})原因很简单,因为我使用的是箭头函数,改变了this指向,所以vue在这里找不到$ro...

错误:Module parse failed: Unexpected character '�' (1:0)的解决方法

今天在用webpack打包文件时报错ERROR in ./src/img/head4.jpg 1:0Module parse failed: Unexpected character '�' (1:0)You may need an appropriate loader to handle this file type, currently no loaders are configured...

#bug
spring报错:org.springframework.web.util.NestedServletException

今天在写实验报告,遇到一个问题在开启服务器时报404手动输入地址后报500仔细看一下500页面的报错信息,发现了这个提示java.lang.IllegalStateException: Optional int parameter 'cno' is present but cannot be translated into a null value due to being declared as

#java#spring#tomcat +1
到底了