0

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

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

<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>
4

0 回答 0