script tag

1639 questions


1 answers
104 views
0
Javascript gets in trouble for saying this is undefined.

I am currently a beginner studying JavaScript.The code is debugged below, and letres_=await this.callApi()If the callApi is undefined, you will get in trouble.There is no description of callApi in the...

2 years ago

2 answers
17 views
0
I want to get the index of the elements clicked in JavaScript.

<ul> <li>Chocolate</li> <li>Vanilla</li> <li>Strawberry</li> <li> Bananas</li></ul>When <li> is clicked above, I would like to get wha...

2 years ago

2 answers
19 views
0
How to Look Up Events in js

I'm creating a page, typing text in a text box, and clicking anywhere in the page will erase the contents of the text box, so I'd like to find out what's going on when the cursor moves away from the t...

2 years ago

1 answers
20 views
0
What are the possible reasons for passing "global objects defined in a function" as arguments?

There was a code that passed the global object defined in the function as an argument. What is the possible reason?·Why is it not window or this?· Am I correct in understanding that global objects nee...

2 years ago

1 answers
130 views
0
ChartJS Tooltip callback function does not work.

We use ChartJS to display bar graphs.I defined callbacks in the tooltips property to edit the contents of the tooltips, but The tooltip does not change the contents.Do you know the cause?▼ Execution E...


1 answers
68 views
0
node, javascript error using soket.io [overlapping]

(Two answers) 4 years agoThere is an error in client.js, but I don't know where to fix it.It seems to be an error with the symbol <, but I don't use it anywhere, so it's refreshing.If you are f...


1 answers
16 views
0
Please tell me about JavaScript regular expressions.

Sample Code const path = 'index'; // index may be summary/productconstarray=['index']; // index may be summary/productconst result=array.find(page=>{ if(page===path||`${page}/`===path){ return page...

2 years ago

1 answers
28 views
0
Element retrieved in tagname becomes BODY instead of SELECT

I got b for the pull-down (select tag), so I want it to be b=SELECT, but for some reason it might be b=BODY.When I checked the activeElement specifications on the page below, I found the following:Doc...

2 years ago

3 answers
18 views
0
How should we write down the internal methods that are called only once?

function A(){};A.prototype.a=function(){ // any other treatment // Calling A.prototype._b This._b();};A.prototype._b = function(){};A.prototype._b is used only in A.prototype.a and assumes modules tha...

2 years ago

1 answers
40 views
0
Swiper.js Interrupted Loop Time Termination

As shown below, I try to focus on the center with slideTo when I click on the swiper, but it breaks when I go to the beginning or end.It seems that the elements are cloned when a mouse drag or touchEv...

2 years ago
« - 109 - »

© 2024 OneMinuteCode. All rights reserved.