when I use vue-cli scaffolding to do a project these days, I feel like there are a lot of holes to step on. I wonder if the project only introduces the vue.js file, similar to the introduction of JQ to use vue to do so, will it take advantage of vue
when I use vue-cli scaffolding to do a project these days, I feel like there are a lot of holes to step on. I wonder if the project only introduces the vue.js file, similar to the introduction of JQ to use vue to do so, will it take advantage of vue
the purpose of scaffolding is to save developers time to deploy the project and make some common configurations in advance.
if it is just to do some data processing with vue, of course, the official document is also introduced directly at the beginning
the best way is scaffolding. It is also possible to introduce
directly.
VUE is a progressive framework
as long as it suits you, no one cares about the difference between your suit with sneakers and your suit with leather shoes.
certainly makes sense, you can use vue.js directly to build traditional multi-page applications just like introducing jQuery. But you have to consider whether your project needs to be compatible with browsers that don't support es6, and use babel if you need to. Vue-cli exists for the engineering of medium and large projects, regardless of personal choice.
I think the advantage of mvvm is to ensure the consistency of data and dom, while spa solves the performance problems of the traditional development mode. The whole bucket and plug-ins such as routing and data flow
if you consider the subsequent functions are better compatible with scaffolding, if the page is just a form submission, it is up to you
not. Might as well quote jq. directly Scaffolding is to lighten the burden of development. Direct quotation may encounter more holes, and no one has encountered it, and you can't find it on the Internet.
is all right.
new Vue () an instance on each page, but it is cumbersome and the components cannot be reused.
I think it depends on the size of the project. If it is a small project, it is more convenient to introduce vue.js directly. If it is medium or large, it is a bit simple and rough from the whole family bucket.
when you want only one or more parts of the page to be controlled by vue, it is clear that introduction provides better freedom.
separating vue instances can also achieve better data isolation.
give an inappropriate example:
for example, for a so-called medium-and large-scale project, now we need to do the function of a propaganda page, which requires the page to go straight out as soon as possible, so simple that it only takes a few asynchronous requests to complete the data interaction. You add it to the whole scaffolding project. I visit this page alone and load a bunch of routes? What if I directly take the page as a static page and render it with a small vue instance according to the access parameters?
so it's not that a project can only be introduced in one way, depending on the situation.
Previous: What is the specific difference among weex's list scroller waterfall?
Next: How to transfer the values of the custom calculation function parameters in WeChat Mini Programs?
in router.js, because the breadcrumb component is used in multiple pages, the breadcrumb component is referenced by nested named views: { path: Manage , name: , component: function(res) { require([ .. components common layo...
wrote an H5 page. According to the official description of Wechat jssdk, it is found that the shared icons and descriptions are invalid. the code is like this ....
In the vue-cli project, I directly introduced the particls library into index.html, and the related files are placed in the static directory . <div id="particles-js">< div> <script type="text javascript" src="s...
the data received on the server is [{ "name ": "TOM ", "age ": "16 "}, { "name ": "JACK ", "age ": "18 "}, { "name ": "marry ", "age ": "20 "}] I think there is something wrong with the loop code in html. <ul v-for="item in items"...
how to connect vue1.0 to the domed components generated by qdQQ, is invalid when index.html introduces js, and clicks on the dom node, and cannot afford to call qq ...
create filter.js in the js folder in src assets main ...
< div vFFOR = "list in item " > < span VFF bindcharacters list.user.name > list.user.name outputs the name "Xiao Hong " in the view. However, the console will report that name does not define < div > those who are familiar with angular...
as shown in the red box of the second picture, is there any recommendation for this plug-in? Thank you. the screenshot is uploaded, so let s just look at it. nothing can be found in vueawesome. ...
version: "version ": "1.1.4 ", problem description: in the table header, if you want to add the Tooltip component, if the Tooltip component does not use the slot slot, it will display normally, but when the content to be displayed is too much, using ...
just can t show it. Thank you very much for your advice. ...
Front-end Xiaobai, a company internship, needs to export all the data in the paging to the excel table. After finding the answers, you only finish exporting the data on the current page. I would like to ask how to export the data of all pages. I tried t...
use axios for registration, use graphic verification code to verify whether it is correct, cannot be verified correctly, 1. Get the graphic verification code first this.$http({ method: get , url: this.api + app platform getImgCo...
the demand has changed. Previously, you only need to submit the id array of the selected leaf node, and then you can get it directly through the official api [getCheckedKeys]. Now it is required to also pass the id of the parent node. get stuck. Many ...
as shown in the figure, I used the menu bar component of ivew in vue figure 1. I selected the content on the right side of the login log to display the contents of the login log, which is normal . then I set up a @ click route on the account profile d...
< H2 > now there is a strange situation, that is, when I use the Loadmore component, the pull-up load is not performed, only the drop-down refresh is performed. It only executes every time I change the location of the component, but after I refresh it, i...
localhost:8080 -sharp register ; register(); :localhost:8080 ?-sharp register;ajax;;localhost:8080 ?-sharp register;home : vue@;formform ...
In vue, when the account input and password input of the login page communicate between two different components, how to verify the login through axios? do you need to create a new login interface at this time? ...
I make a login interface using tabs in elementui to divide student login and teacher login <el-tabs v-model="activeName" @tab-click="handleClick"> <el-tab-pane label="" name="first"> <tabs>...
vue , pug , VaForminput , dom ...
manually adding window.onerror in 2.5 does not catch errors or how does it work? Does have to be handled in Vue.config.errorHandler ? ...