script tag

1639 questions


1 answers
72 views
0
How to remove Unicode characters from Javascript (string.replace())

Hi, I'm trying to delete two unicodes in the text with javascript: &zwj and &emsp, but it doesn't work as I thought.<div class=item data-value=0399>&zwj;&emsp;Fruits </div>...

2 years ago

1 answers
19 views
0
Is there a library in JavaScript that can compensate for floating point computation errors?

Usually, a floating point calculation error occurs in a programming language.var x = 0.2 + 0.1; // 0.3console.log(x) // 0.30000000000000004var y = 0.1 * 0.2; // 0.02 console.log(y) // 0.02000000000000...

2 years ago

1 answers
17 views
0
Please help me with the JavaScript code crying

Hello, I'm a total beginner who has been learning JavaScript for 2 weeksThe academy gave me the assignment. I tried it after thinking about it for 3 days, but I can't do it because I made a wrong func...

2 years ago

1 answers
111 views
0
[javascript] Questions about callback

Hello, the code below is written as an example for callback.var cbExample = function(number, cb) { setTimeout(function() { var sum = 0; for (var i = number; i > 0; i--) { sum += i; } cb(sum); }, 0)...

2 years ago

1 answers
65 views
0
Meaning of code with exitcode=0 in the .sh file

I was studying Docker.I saw a code line that said exitcode=0 in the sh file.I'm not sure what exitcode=0 means. I would like to ask for url with a brief explanation or explanation of exit code. Thank ...

2 years ago

1 answers
44 views
0
Js Selector Question

Hi, how are you?<!-- html --><style> foo { border-right: 1px solid black; }</style><div id=foo></div>$('#foo').mosedown(function(e) { // // event code}I want to process ...

2 years ago

1 answers
73 views
0
When loading an xml document, it does not work in Chrome

function readxml(filename) { xmlHttp = new window.xmlHttpRequest(); xmlHttp.open(GET, filename, false) xmlHttp.send(null) xmlDoc = xmlHttp.responseXML.documentElement}function loadXMLDoc(dname) { try ...

2 years ago

2 answers
101 views
0
[javascript] Question when importing a response object with a prompt

Hello. The code below is the code that you want to get the data of a specific link to JS.Through this code, I first learned about fetch functions, promise objects, and response objects. const endpoint...


1 answers
57 views
0
It's the code I got. The game is not running...Help me!

I scratched the game source code I found on the Internet, modified only the image part and css part, and ran it, but Uncaught ReferenceError: $ is not defined and it does not run... What's wrong with ...

2 years ago

1 answers
40 views
0
I have a question about JavaScript layer pop-up.

Different layer pop-ups were applied to different divisionsNo matter which div you press, only one layer pop-up appears.The basic framework for creating layer pop-ups is like this. function wrapWindow...

« - 128 - »

© 2024 OneMinuteCode. All rights reserved.