Home > Web Front-end > Vue.js > body text

What programming paradigm is vue?

WBOY
Release: 2022-03-16 11:04:05
Original
2979 people have browsed it

vue is declarative programming; declarative programming expresses the logic of program execution in the form of data structures. The main idea is to tell the computer what to do, but does not specify how to do it. Vue uses this This development model realizes the separation of data and interface.

What programming paradigm is vue?

The operating environment of this article: Windows 10 system, Vue version 2.9.6, DELL G3 computer.

What programming paradigm is vue

Programming paradigm: declarative programming.

Command the "machine" how to do things (how), so that no matter what you want (what), it will be implemented according to your command.

Declarative programming expresses the logic of program execution in the form of data structures. Its main idea is to tell the computer what it should do, but not specify how to do it.

<div id="app">{{message}}</div>
<script>
    const app=new Vue({
        el:&#39;#app&#39;,  //用于管理要挂载的数据
        data:{     //定义数据
            message:&#39;Hello world!&#39;
        }
    });
</script>
Copy after login

You only need to change the value of message in data to change the value of id app in div.

Vue also achieves the separation of data and interface through this development model.

(Other common declarative programming statements: database SQL management statements)

[Related recommendations: "vue.js Tutorial"]

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

Related labels:
vue
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template