为什么无法通过CDN使用VueSimpleMDE显示markdown-editor?

时间:2017-12-27 12:46:33

标签: vue.js markdown simplemde

为什么以下代码无法显示降价编辑器?

为什么无法通过CDN使用VueSimpleMDE显示降价编辑器?

<html>
    <head>
        <script src="https://cdn.bootcss.com/vue/2.4.4/vue.min.js"></script>
        <link href="https://unpkg.com/simplemde@1.11.2/dist/simplemde.min.css" rel="stylesheet">
        <script src="https://unpkg.com/simplemde@1.11.2/dist/simplemde.min.js"></script>
        <script src="https://unpkg.com/vue-simplemde@0.4.6/dist/vue-simplemde.min.js"></script>
    </head>
    <body>
        <script>
            Vue.use(VueSimpleMDE);
        </script>
        <div id="vue-app">
            {{ content }}
            <markdown-editor v-model="content" ref="markdownEditor"></markdown-editor>
        </div>        
        <script>
            var vue = new Vue({ "el": "#vue-app", data: { content: "kdfljads" } });
        </script>
    </body>
</html>

0 个答案:

没有答案