First, there is only one change event. changelevel() //Select value If you want to change the select and change the value in the row Multiple events are separated by At this time, it is found that changelevel() is not executed, so what about adding () changelevel(val){ console.log(val) => //undefined} Indicates that no parameters are passed and output is undefined So who should we pass the value to? Pass in $event and output it again to get the selected value Added: element-ui @change adds custom parameters The default parameter of the change event of element-ui is a value. For example, the default parameter of the change event of the drop-down box is the selected value. However, in actual projects, we usually need to pass more than one parameter. If we directly append two parameters, we may not get them. In this case, we need to replace the default parameter name in the parameter with $event. //The first parameter is the default value parameter, and the second is the parameter we want to pass in @change='selectChange($event,scope.row)' Or use the second method: @change='(val)=>selectChange(value,scope.row)' The above is my personal experience. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. If there are any mistakes or incomplete considerations, please feel free to correct me. You may also be interested in:
|
<<: Mysql5.7 service cannot be started. Graphical solution tutorial
>>: MySQL SQL statement method to hide the middle four digits of the mobile phone number
1. INSERT INTO SELECT statement The statement for...
Beginners can learn HTML by understanding some HT...
A dynamic clock demo based on Canvas is provided ...
1. Requirements description Display the delete ic...
1. Check the MySQL database encoding mysql -u use...
When the token expires, refresh the page. If the ...
Table of contents Network Information Modify the ...
Is there any way to remove spaces from a certain ...
The Core Asset Management Project requires el-tra...
Overview: Oracle scott user has four tables, whic...
Usually the pictures uploaded by users need to be...
1. Install Docker. Reference URL: Docker Getting ...
How to delete environment variables in Linux? Use...
Table of contents Overview Why choose a framework...
Introduction Because JavaScript is single-threade...