受欢迎的博客标签

How to setup Vue Js in Asp.net Core MVC

Published

Table of Contents

Installing Vue.js

<!DOCTYPE html>
<html>
<head>
  <script src="https://cloud.tinymce.com/stable/tinymce.min.js"></script>
  <script src="https://unpkg.com/[email protected]/dist/vue.js"></script>
</head>
<body>
  <textarea>Next, get a free TinyMCE Cloud API key!</textarea>
  <script>
    tinymce.init({
        selector:'textarea'
        //or
        // target: document.querySelector('textarea')
    });
  </script>
</body>
</html>

 

come from:https://blog.csdn.net/JSPSEO/article/details/125222177

@{
    ViewData["Title"] = "Home Page";
}

<div class="text-center">
    <h1 class="display-4">Welcome</h1>
    <p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
</div>


<div id="tinymcedemo">
</div>

//come from :https://juejin.cn/post/7133392287463112735
<script>
    var vmindexapp = new Vue({
        el: '#indexapp',
        data: {
            search: null,
            loading: true,
            errors: null,
        },
        mounted() {
            this.init();
        },
        //ready: function () {
        //    this.getCustomers()
        //},
        methods: {
            init() {
                window.tinymce.init({
                    selector: "#tinymcedemo"
                })
            }
        }
    })</script>