一、安装md解析器
npm install vue-markdown --save
二、引用vue-markdown
<script>
import VueMarkdown from "vue-markdown";
export default {
components: {
VueMarkdown }
};
</script>
三、ajax请求
static 目录下有 md目录,md下有md1.md文件。
const that = this;
const url = "static/md/md";
axios.get(url + "1.md").then(function(resp) {
that.md =