前端
jackson1024
这个作者很懒,什么都没留下…
展开
-
Vue resource与axios上传文件blob的配置
问题:后台返回一个stream流,前台无法用blob准确接收,new Blob的字节数和后台返回不一致。 后台返回: 示意代码: public void downloadTemplate(HttpServletResponse response) { String newFileName = URLEncoder.encode(fileName, StandardCharsets....原创 2019-08-13 11:05:50 · 3333 阅读 · 0 评论 -
子frame取父frame的URL,跨域问题
[Vue warn]: Error in created hook: "SecurityError: Blocked a frame with origin "http://xx.x.x.x:81" from accessing a cross-origin frame." let url = window.top.location.href //这里有跨域问题,如果父窗口和子窗口不在同一个域...原创 2019-09-26 15:46:21 · 603 阅读 · 1 评论