flask闪现 flash
flash和get_flashed_messages()的关系是两者配合使用,flash就是在程序运行中实现交互,反馈信息。
flash(messages,categories),flash函数具有两个参数:
- 第一个参数是你将要放进去的字符串消息。
- 第二个默认参数category,代表消息的类别,默认为message(消息,普通)。
get_flashed_messages(with_categories, category_filter) 两个默认参数
缺失模块。
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