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.
The operating environment of this article: Windows 10 system, Vue version 2.9.6, DELL G3 computer.
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:'#app', //用于管理要挂载的数据 data:{ //定义数据 message:'Hello world!' } }); </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!