Home  >  Article  >  Web Front-end  >  What programming paradigm is vue?

What programming paradigm is vue?

WBOY
WBOYOriginal
2022-03-16 11:04:052975browse

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>

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!

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