项目开发中,碰到这样一个情形:在点击页面空白处时会弹出状态栏,效果就如我上一篇博客一样。
那么何为空白处呢?
我的理解是:若是你这个点击事件没有其他View消费,那么便算是点击空白处了。
大致画一下页面布局:
那么在点击图中画框的其他地方,应该都能算上是空白处了,也就是在点击这些地方的时候,需要执行状态栏弹出的操作。
缺失模块。
1、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
2、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: true
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true