let dataSource = []; menuList.map((item, index) => dataSource.push({ key: item.type, rank: index + 1, text: item.text, type: item.type, icon: item.icon, status: item.status }) ); if you ...
I want to create an array of length 15 where the first five items are the contents of another one-dimensional array, and the following array values are specified by me (such as empty) let arr1 = new Array(5) arr2.map((x)=>{ arr1.unshift(x) }) r...
function duplicates(arr) { var obj = {}; var newArr = []; for (var i in arr){ if(obj[arr[i]]){ obj[arr[i]]PP; } else{ obj[arr[i]]=1; } } ...
Why can t I see the request parameters after setting up the proxy in this way for my local developer? what is the reason for requesting a Failed to load http: 127.0.0.1:8080 api photo queryindex: Response for preflight is invalid (redirect) err...
the project I created with create-react-app my-app official scaffolding in the beginning, there are only three folders: node_modules and public,src, and no configuration files such as config and webpack.base.conf.js are found. What if I want to conf...
there is a problem: leave 1px blank at the bottom without sticking to the bottom page typesetting normally, html,body padding margin has been set to 0 ...
if so, could you tell me how to configure it? Vue-cli ...
the sortchange hook function is called when sorting, and then the initsort method is triggered. I wanted to keep the first row from moving up (forcing the sorted image to be updated without success), but the table data changed, but the page did not chan...