Vue development does not require scaffolding. Vue projects do not necessarily need to build scaffolding. You can also directly use cdn to introduce vue.js. It is also possible to write static pages without scaffolding; scaffolding is just a pre-configured framework. If you like, you can build a scaffolding manually. The exact same code structure will work.
vue is a progressive front-end framework. Progressive means that you can introduce a series of external resources you need during use. This means that you can build your own framework. If you don't use vue-cli, you can build your own development framework. If you need vuex or vue-router, just install it with npm and import it in the project.
Vue projects do not necessarily need to build scaffolding. You can also directly use cdn to introduce vue.js. It is also possible to write static pages without building scaffolding. Scaffolding is just a pre-configured framework. If you like, you can manually create a scaffold with the same code structure.
If you don’t want to use a framework, you can build the project directly with vue.js, which can be introduced using CND.
Recommend several relatively stable CDNs abroad. I haven’t found any that are better in China. Currently, it is recommended to download them locally.
Staticfile CDN (domestic): https://cdn.staticfile.org/vue/2.2.2/vue.min.js
unpkg: https://unpkg.com/vue/dist/vue.js, will remain consistent with the latest version released by npm.
cdnjs : https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.8/vue.min.js
Through CDN, you can start using it by introducing js and css files on the page.
Case 1: vuex
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Title</title> <script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script> <script src="https://unpkg.com/vuex@3.0.1/dist/vuex.js"></script> </head> <div id="app"></div> <body> <script type="text/Template" id="tpl"> <div> <tip></tip> <input type="button" value="+" @click="jia" /> <input type="button" value="-" @click="jian" /> </div> </script> <script> const VuexStore = new Vuex.Store({ state: { count: 0, num1: 1, num2: 2 }, mutations: { add(state, arg) { state.count += arg.amount; }, reduce(state) { state.count --; } }, getters: { he(state,getters) { return state.count + state.num1 + state.num2 }, add5(state) { return state.count + 0 } }, actions: { add_act({commit}) { commit({type:'add', amount:5}) }, reduce_act({commit}) { commit({type:'reduce'}) } }, modules: { } }); const app = new Vue({ el: '#app', store: VuexStore, template: '#tpl', components: { tip: { computed: { ...Vuex.mapState(['count','num1','num2']), // ...Vuex.mapGetters(['he'])代替了$store.getters.he ...Vuex.mapGetters(['he']), }, template: '<div>{{count}}-{{num1}}-{{num2}}={{he}}</div>' } }, methods: { // ...Vuex.mapMutations(['add'])代替了$store.commit('add') // ...Vuex.mapMutations(['add','reduce']), ...Vuex.mapActions(['add_act', 'reduce_act']), jia() { // this.$store.commit({type:'add',amount:100}) // this.$store.dispatch('add_act'); this.add_act(); // this.add({amount:100}); }, jian() { // this.$store.commit('reduce'); // this.$store.dispatch('reduce_act'); this.reduce_act(); // this.reduce(); } } }) </script> </body> </html>
As for the router case: https://github.com/vuejs/vue-router/tree/dev/examples
Extended information:
The full name of CDN is Content Delivery Network, which is content distribution network. CDN is an intelligent virtual network built on the existing network. It relies on edge servers deployed in various places and uses the load balancing, content distribution, scheduling and other functional modules of the central platform to enable users to obtain the content they need nearby and reduce network congestion. Improve user access response speed and hit rate. The key technologies of CDN mainly include content storage and distribution technology.
CDN has the following main functions:
(1) Save backbone network bandwidth and reduce bandwidth requirements;
(2) Provide server-side acceleration to solve the problem of user traffic Large server overload problem;
(3) Service providers can use Web Cache technology to locally cache Web pages and objects that users have accessed, so that access to the same objects does not need to occupy the export bandwidth of the backbone, and improve user The corresponding time requirement for accessing Internet pages;
(4) It can overcome the problem of uneven website distribution and reduce the cost of website construction and maintenance;
(5) Reduce "communication storm" ” impact and improve the stability of network access.
Related recommendations:
2020 front-end vue interview questions summary (with answers)
vue tutorial Recommendation: The latest 5 vue.js video tutorial selections in 2020
For more programming-related knowledge, please visit: Programming Teaching! !
The above is the detailed content of Is scaffolding necessary for Vue development?. For more information, please follow other related articles on the PHP Chinese website!

The future trends and forecasts of Vue.js and React are: 1) Vue.js will be widely used in enterprise-level applications and have made breakthroughs in server-side rendering and static site generation; 2) React will innovate in server components and data acquisition, and further optimize the concurrency model.

Netflix's front-end technology stack is mainly based on React and Redux. 1.React is used to build high-performance single-page applications, and improves code reusability and maintenance through component development. 2. Redux is used for state management to ensure that state changes are predictable and traceable. 3. The toolchain includes Webpack, Babel, Jest and Enzyme to ensure code quality and performance. 4. Performance optimization is achieved through code segmentation, lazy loading and server-side rendering to improve user experience.

Vue.js is a progressive framework suitable for building highly interactive user interfaces. Its core functions include responsive systems, component development and routing management. 1) The responsive system realizes data monitoring through Object.defineProperty or Proxy, and automatically updates the interface. 2) Component development allows the interface to be split into reusable modules. 3) VueRouter supports single-page applications to improve user experience.

The main disadvantages of Vue.js include: 1. The ecosystem is relatively new, and third-party libraries and tools are not as rich as other frameworks; 2. The learning curve becomes steep in complex functions; 3. Community support and resources are not as extensive as React and Angular; 4. Performance problems may be encountered in large applications; 5. Version upgrades and compatibility challenges are greater.

Netflix uses React as its front-end framework. 1.React's component development and virtual DOM mechanism improve performance and development efficiency. 2. Use Webpack and Babel to optimize code construction and deployment. 3. Use code segmentation, server-side rendering and caching strategies for performance optimization.

Reasons for Vue.js' popularity include simplicity and easy learning, flexibility and high performance. 1) Its progressive framework design is suitable for beginners to learn step by step. 2) Component-based development improves code maintainability and team collaboration efficiency. 3) Responsive systems and virtual DOM improve rendering performance.

Vue.js is easier to use and has a smooth learning curve, which is suitable for beginners; React has a steeper learning curve, but has strong flexibility, which is suitable for experienced developers. 1.Vue.js is easy to get started with through simple data binding and progressive design. 2.React requires understanding of virtual DOM and JSX, but provides higher flexibility and performance advantages.

Vue.js is suitable for fast development and small projects, while React is more suitable for large and complex projects. 1.Vue.js is simple and easy to learn, suitable for rapid development and small projects. 2.React is powerful and suitable for large and complex projects. 3. The progressive features of Vue.js are suitable for gradually introducing functions. 4. React's componentized and virtual DOM performs well when dealing with complex UI and data-intensive applications.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SublimeText3 English version
Recommended: Win version, supports code prompts!

SublimeText3 Linux new version
SublimeText3 Linux latest version
