there is a requirement that after clicking a tag on one side, the tag will be added to the array on the other side and disappear in this array, as shown in figure
clickclick
vue
js
there is a requirement that after clicking a tag on one side, the tag will be added to the array on the other side and disappear in this array, as shown in figure
clickclick
vue
js
probably the idea is to get the dragged content in put, then save it as a field, determine whether the field exists in the boxes on both sides, and display a dotted frame where the content is the field you saved, and then clear the field in the end function. Notice to set .sortable-chosen
the display of this class to none
template code has not changed, the click event has been modified, and the idea is the same as what the master on the first floor said: first add elements to the array push on the opposite side, and then delete elements by splice. (the addition and deletion of the vue array are in my notes.) all this work is done by indexing index
/* */
joinHasContents: function(index){
//this.dom = event.currentTarget;
this.follow_nohas_contents.push({name: this.follow_has_contents[index].name}); //
this.follow_has_contents.splice(index,1);
},
joinNoHasContents: function(index){
//this.dom = event.currentTarget;
this.follow_has_contents.push({name: this.follow_nohas_contents[index].name}); //
this.follow_nohas_contents.splice(index,1);
}
closeProject:function (index) { $( .project-card ).eq(index).css({ height : 100px , }) console.log($( .project-card ).eq(index).css( height )) }, project:function (index) { $( .pro...
how do js or Jq get the current city and IP, and ask for advice on the mobile end? it s best to find a small case. Thank you very much! ...
use js to achieve the function of dragging and inserting values in the tree structure directly into the cell on the right. drag and drop is easier to implement, but I don t know how to get the value to which cell it is dragged to in real time, and how...
1. I think the front end always keeps pace with learning new technologies. Vue can be regarded as a mature technology. People who know vue,react and other frameworks are recruited everywhere. Why do our company bosses and people who do SEO optimizatio...
layer.js error layer.js:353 Uncaught TypeError: Cannot read property style of undefined at Object.r.setTop (layer.js:353) at Object.success (addsim.vue?d932:297) at s.pt.callback (layer.js:318) at s.pt.creat (layer.js:198) at new s (layer.js:119)...