Home >Web Front-end >Front-end Q&A >What is progressive javascript

What is progressive javascript

WBOY
WBOYOriginal
2022-07-28 17:39:442977browse

Progressive JavaScript refers to a way from shallow to deep, from simple to difficult. "vue.js" is a progressive JavaScript framework; progressive means stepping forward, such as vue Progressive performance is in declarative rendering, component system, client routing, big data filling management, and build tools.

What is progressive javascript

The operating environment of this tutorial: Windows 10 system, JavaScript version 1.8.5, Dell G3 computer.

What is progressive javascript

vue.js is a progressive JavaScript framework.

What is progressive?

Progressive refers to a method that can progress from shallow to deep, from simple to difficult.

Progressive: Stepwise forward, vue is lightweight, it has many independent functions or libraries, we will choose some functions of vue according to our project, when we develop the project, we only When using Vue's declarative rendering, I only use Vue's declarative rendering, and we need to use its component system. We can use its component system.

Vue’s progressive performance:

Declarative rendering----component system-----client routing------big data filling Management -------Build tools

Declarative rendering:

// 引入vue
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
// html
<div id="app">
  {{ msg }}
</div>
// js
<script>
var app = new Vue({
  el: &#39;#app&#39;,
  data: {
    msg: &#39;Hello Vue!&#39;
  }
})
</script>

Componentized application

 Can be Each of the above declarative files is regarded as a component. There can be multiple components that constitute each other in a project. I use a picture from the official website to illustrate

What is progressive javascript

Client routing: Implement single-page application by using its routing features

Centralized state management: That is the concept of vuex in vue

Project construction: This is generally a process of development, packaging, deployment, online, etc. in a large project

Progressive summary: From If you use vue to differentiate and define, you can also use the api in vue alone, or you can use the underlying services in vue, so it can also be said that vue is both a library and a framework.

【Related recommendations: javascript video tutorial, web front-end

The above is the detailed content of What is progressive 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