- http和https的区别
- 由于浏览器的安全策略限制,在http站内只能使用http协议去请求接口,同样的在https站内只能使用https协议去请求接口,请求资源时不会被限制但控制台会有警告,所以网页中请求资源或者接口时,使用//,不要写死http或者https,这样在http站就会使用http协议,在https站内就会使用https协议
1
<a href='//www.baidu.com'></a>
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true