从JSONEditer看H5与native交互
如果说产品告诉你他有个需求要求在手机上能编辑服务端返回的json,你是不是认为他疯了,我们可以用:“手机屏幕这么小,打字,选中文字这么麻烦,怎么编辑”类似的理由怼他。但是如果这个需求是我们自己的一个技术需求中的小功能,那我们就不得不考虑怎么做一个在手机上方便修改json文本的编辑器了。
more >>
缺失模块。
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