在搜索如何使用指数显示时,都是推荐使用semilogy、set(gca,’yscale’,’log’),研究了半天,也只摸索出显示正指数,对于负指数表示无能为力。最终找到了一个个人认为是很好的解决方案,代码很简单,如下所示:
代码
1 | // Simple demo |

如有错误,欢迎指正
缺失模块。
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