when I was reading shopping-cart demo, I found one of the words:
product.price
Number
currency
Function
how is this achieved? I am puzzled by the usage of "|"
Source address:
https://github.com/vuejs/vuex.
when I was reading shopping-cart demo, I found one of the words:
product.price
Number
currency
Function
how is this achieved? I am puzzled by the usage of "|"
Source address:
https://github.com/vuejs/vuex.
filter
Vue.js allows you to customize filters that can be used for some common text formatting.
ide/filters.html" rel=" nofollow noreferrer "> filter
if I go to the background to query the details according to the id in the created method of the component, it can be displayed normally without reporting an error, but when the id value of the parent component is changed, it will not be again....
I m going to assign the default value of 1 to the value of the drop-down box and bind this variable; <select v-model= selectValue >< select> but just let data(){ return{ selectValue:1 } } this type of writing is not readable, so I ...
the requirement is that when I click the login button, I need to request an interface to determine whether the user has successfully logged in, change the status in store if successful, and then jump to the page according to the status. The interfac...
my younger brother is not talented. I m learning Vue . I m going to use Douban s API to practice a handwritten single-page application . I encountered a problem with http request . as shown in the figure: I need to use the same movie list data in...
how vuex sets a time when saving data to empty vuex data. Go to the API again to get the latest data and save it. Ask for the answer of the Great God ...
whether 1.vuex can be used to store data or whether it is used to store data itself. for example, page An and B2 make ajax requests on page A, and the data obtained need to be displayed on page B. My personal approach is to store the ajax data in state...
these days, while learning the vuex source code, I see a in the logger.js file. The parameter in the function createLogger does not understand this. Does it mean that the object in the parameter is an empty object by default, and why the attribute i...
Let s talk about my business scenario first. I now have two pages An and B, and the A page has two sub-components A1 and a2. A specific component is displayed through the isComponent of vuex . The code for A.vue is as follows: <template> &...
question: how does vuex separate some common methods? Business scenario: vuex stores my product list (a large number of products), and the components have operations about product additions, deletions and modifications (in vuex). Then each operation h...
[b] I got data similar to the following through the database, titledetailtitle elment :data= " list " . ask all the bosses for help. It has been stuck for almost a day [ b] ...
1. How do I use Echarts.Examole for vue?...
initialize an object in state. travellerInfo: { after: { address: {}, temporary: { people: { data: [], ids: [], }, stroke: { data: {}, ...
the project relies heavily on vuex and watch, and componentization is very convenient, but the data and state sharing between components has always been very difficult to deal with, so after using vuex, it is heavily dependent, and watch is heavily used...