自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 frame-ancestors 'self'

做iframe的时候渲染突然给我报了个错 in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors ‘self’ 赶紧去百度一下什么是Content Security Policy CSP ---- 内容安全策略 意思是限制iframe只能访问...

2019-12-30 16:27:29 7845 1

原创 0.1+0.2!=0.3 精度丢失问题

0.1+0.2=0.30000000000000004; 解决方案一: function add(num1, num2) { const num1Digits = (num1.toString().split(’.’)[1] || ‘’).length; const num2Digits = (num2.toString().split(’.’)[1] || ‘’).length; const b...

2019-12-30 15:54:19 628

原创 es6新特性 map reduce filter

-------------------------- map (一一对应return出来) ---------------------------------- let arr=[68,55,12,32]; let arr2=arr.map(function(item){ if(item>=60){ return ‘及格’ }else{ return ‘不及格’ } }) ------...

2019-12-17 15:07:42 109

原创 nginx配置

nginx配置 项目运行 流程 cmd 输入 vue ui 浏览器 会弹出管理页面http://localhost:8000/project/select 要运行的项目名后面有一个灰色的点,点击会弹出任务弹窗 点dev后面的运行按钮 VMware安装Centos7超详细过程 https://blog.csdn.net/babyxue/article/details/80970526 nginx 安...

2019-12-17 15:05:42 137

原创 robots协议写法

robots协议 robots.txt必须放置在一个站点的根目录下,而且文件名必须全部小写。robots.txt文件的格式 User-agent: 定义搜索引擎的类型 Disallow: 定义禁止搜索引擎收录的地址 Allow: 定义允许搜索引擎收录的地址 我们常用的搜索引擎类型有: google蜘蛛:googlebot 百度蜘蛛:baiduspider yahoo蜘蛛:slurp alexa蜘蛛...

2019-12-17 15:00:32 276

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除