in anniuzhi [I] .zz = I, I don"t understand how to bind it to the first picture. What is the purpose of using this?
in anniuzhi [I] .zz = I, I don"t understand how to bind it to the first picture. What is the purpose of using this?
is actually quite simple. Let me give you an example. Words like this are usually done by binding data-id on an element. In fact, it doesn't matter where the attribute is bound, what matters is how to set the property to make it easier for you to use, not necessarily the same as others.
$('.target-li').on("mouseover",function(){
var $id = $(this).attr("data-id"); //
//$id
doSomething($id);
});
Line 117, zz is tied to the button. When the event is triggered, read zz to know how many it is
We know that the for loop is global, because there are many ways to broadcast pictures. Again, I'll use my method to help you interpret it:
olis [0] .className = "current";
//
for(var j=0;j<olis.length;jPP){
//j 10
olis[j].index=j;
olis[j].onclick=function(){
//j
//olis[i]j
for(var i=0;i<olis.length;iPP){
olis[i].className="";//className
ulis[i].style.display="none";//
}
olis[this.index].className="current";//className
//ulis
ulis[this.index].style.display="block";//
count=this.index;//count
console.log(this.index);//this.index
}
}
this should be this part of the content, if you don't use this here, because we are looping to each bound click event, the landlord can try to see the print result at the end of the console.log code. If we assign the subscript of each element to the index attribute of arr [I] before, we can solve the problem caused by the subscript loop through the attribute value.
do the gods have plug-ins for uploading attachments in the mobile version that can also be uploaded more than one? ...
the traditional position: fixed; is relative to the window, and there are two main points of the problem . relative to the specified parent element fixed positioning encountered the following problems in mobile development. The green box is the...
as shown in the figure, there are four sort buttons in a table header, and the requirements are as follows: the first click on descending order, the second click on ascending order, and the third click on the default display (no sorting); I would li...
directly above the picture, how to take this top value ...
as shown in the figure, v-for generates input, in Vue. When the add button is clicked, the cursor automatically focuses on the latest input, window and automatically moves to the appropriate location! ...
the only thing I can think of now is to save the current canvas to an array every time I finish drawing, and then take it out of the array when I undo it ...
import React, {Component} from react ; import {Menu, Dropdown, Icon} from antd ; const handleClick = () => { console.log(this); }; const menu = ( <Menu onClick={handleClick} onSelect={({item, key, selectedKeys}) => { con...
...
the scheduling page clicks the order to enter the order details. When you return to the scheduling page, you will request data rendering again. Now you want to return to the previous page without rendering. cannot be cached using keep-alive, and activa...
var t = $( -sharplxu_dr_table ).dataTable({ data: returnData, language: trans(), sDom: "top"i , "scrollX": true, paging:true, pageLength: 10, autoWidth: true, d...
use canvas to draw a chart, but how to implement an adaptive browser ...
recently, if you want to make a table, you need to fix the header and display the first two columns, because the table has a large number of columns, and the width of the table is more than 7000 px. then I have to do fixed two-column positioning. Calcul...
how to use JavaScript or node.js to find the location according to the people in the picture in the video? do you have any packages or some common simple methods? ...
through vuex, it seems that you need to create an extra state variable, and then modify the state through component A, while component B listens for changes in the state, thus realizing the transmission of events. But it feels like the value of this sta...
jq gets the date and week of the last seven days, for example: ...
determine whether the token,success is printed in this app.vue, but the page does not jump. What is the situation ...
< H2 > encounter an image track that needs to be similar to the figure in a project < H2 > what UI should be used for video tracks like this in the front end, and what common libraries are there < H1 > Thank you! < H1 > ...
The input tag has an autocomplete effect, so where are the entered values saved? How can I get it? ...
By default, the paging control of datatable is like this. Only the document can be found to control whether the first and last pages, numeric buttons, upper and lower pages are displayed. what you need to do now is to change the default display of 1...
how do I get the ID, of the DOM element in the current position of the mouse or determine if there is a DOM element in the current position? the mouse is followed by a picture and is written with the onmousemove method. I don t know if it will affect...