1.写这个Demo估计很早了
当时的时候没留意,着急写了个demo,因为项目要用,但是里面有bug, 现在过来填坑,解决bug本来想在原来的csdn改一下的,无奈动图比较大也插不进去 。 csdn原文请点击进入
2.代码中有详细注释,这里直接上代码
2.1 ChildItemBean,这个相当于商品的bean
|
|
|
|
|
To be, or not to be!

|
|
|
|
|
缺失模块。
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