Home  >  Article  >  Web Front-end  >  Is vue JavaScript?

Is vue JavaScript?

WBOY
WBOYOriginal
2022-06-15 15:29:206404browse

vue is not JavaScript, but vue is based on JavaScript; vue is a progressive framework for building user interfaces, using the MIT open source protocol, and JavaScript is a scripting language that runs on the browser side. vue can be used as a JavaScript library to use.

Is vue JavaScript?

The operating environment of this tutorial: windows10 system, javascript1.8.5&&Vue3 version, Dell G3 computer.

Is vue javascript

vue is not javascript

vue.js is based on javascript, a progressive framework for building user interfaces, using MIT open source license. Vue's core library only focuses on the view layer and adopts a bottom-up incremental development design. It is very easy to learn and integrate with other libraries or existing projects.

Vue.js is a progressive JavaScript framework for building user interfaces. Vue only focuses on the view layer and adopts a bottom-up incremental development design

javaScript is a scripting language that runs on the browser side, while Vue.js can be used as a js library and is a set of tools for building user interfaces. Progressive JavaScript framework;

js needs to obtain the DOM object, while Vue binds the value to the js object.

The difference between vue and javascript:

javaScript is a scripting language that runs on the browser side. JavaScript mainly solves the problem of front-end interaction with users, including the use of interaction and For data interaction, JavaScript is interpreted and executed by the browser.

Vue.js can be used as a js library, or you can use its full set of tools to build system interfaces. These can be flexibly selected according to the needs of the project. Therefore, Vue.js is a set of tools for building user interfaces. Progressive JavaScript framework. Vue's core library only focuses on the view layer. Vue's goal is to implement response data binding through the simplest possible API. At this point, Vue.js is similar to the background template language. In essence, it is also js code

javaScript gets the tag element:

<script>
var h1 = document.getElementById("title")
var h2 = document.getElementsByTagName("h1");
console.log(h1.innerHTML)
h1.innerHTML=&#39;修改后的标题&#39;
</script>

Vue gets the tag element:

var vm = new Vue({
    el:"#box1",
    data:{
        content:"标题"
    },
    methods:{
        dianji1:function () {
             this.content = "修改后的标题"
        }
    }
})

[Related recommendation: "vue.js tutorial》】

The above is the detailed content of Is vue JavaScript?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn