针对 MVC 的解耦,目前 MVP 模式已经被很多开发者所使用,项目中所使用的便是 MVP 模式。
在我用到 MVP 模式后,我有个疑惑:1个 Presenter 能否对应多个 View?
这个问题,在网上已经有很多人展开讨论了:使用 MVP 时,如何让同一个 P 服务多个 V?
缺失模块。
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