![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
cesium vue
我虽然笨,但是我会飞呀!____一只会飞的猪
展开
-
The HTTP request is not acceptable for the requested resource.
问题:window.open(url) 报以上错原因:当点击访问页面中外链地址时,会产生一个http请求(用于获取外链地址内容),此时出于安全策略(一些用户信息或登录信息会通过url传递),浏览器会在请求头中添加一个referrer,用来表示当前请求是从哪个页面跳转来的,也就是访问来源。当外链网站对访问做判断时,于是会出现诸如403 Forbidden、The HTTP request i...原创 2020-05-08 11:10:48 · 1927 阅读 · 0 评论 -
js 格式化UTC日期
//格式化日期,2018-05-21T10:54:56.955+08:00——>2018-05-2118:54:56function formatUtcTime(v) { let date = new Date(v); return date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + (date.ge...原创 2020-04-07 15:04:07 · 1657 阅读 · 0 评论 -
ie10+ js执行.click()下载文件无效
通过判断浏览器类型,如果为ie,采用另存为的方式达到下载效果。其他浏览器则模拟点击下载。function downloadFile(title, data) { const blob = new Blob([data], {type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;'}...转载 2019-11-06 10:21:59 · 1243 阅读 · 0 评论