![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
「已注销」
这个作者很懒,什么都没留下…
展开
-
文件上传事件兼容性解决方案:兼容ie和谷歌
在使用vue的做文件上传的时候,发现IE11兼容性有问题,无法打开文件选择器。现解决方案如下var event;console.log("typeof (Event)=============>" + typeof (Event));if (typeof (Event) === 'function') {//google chrome event = document.createEvent("MouseEvents"); event.initEvent("click", f.原创 2020-08-14 15:06:21 · 533 阅读 · 0 评论 -
VUE前后端分离调用api报跨域问题
错误信息:Access to XMLHttpRequest at '服务器地址' from origin 'http://127.0.0.1:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.原创 2020-06-12 10:42:22 · 1151 阅读 · 0 评论