script tag

1639 questions


1 answers
107 views
0
How to write JavaScript to clear a space in a string

How do I clear a space in a string?Input : '/var/www/site/Brand new document.docx'Output : '/var/www/site/Brandnewdocument.docx'I want this kind of result.

2 years ago

1 answers
32 views
0
How do I detect an ESC key pressed in jQuery?

Does the Esc key differ from browser to browser? It's 27 in Explo or Chrome and 0 in Firefox$('body').keypress(function(e){ alert(e.which); if(e.which == 27){ // // Close my modal window }});

2 years ago

1 answers
108 views
0
Simple way to populate an array with zero in JavaScript

I want to fill the array with zero in JavaScript, what should I do?

2 years ago

1 answers
85 views
0
How do I determine if my device is IOS?

I want to check if the device is IOS and do different processing only if it is IOS. But how do I check if it's IOS?

2 years ago

1 answers
37 views
0
How to refresh a page with jQuery

How do I refresh the page with jQuery?

2 years ago

1 answers
106 views
0
How to dynamically merge two JavaScript object properties

var obj1 = { food: 'pizza', car: 'ford' }var obj2 = { animal: 'dog' }obj1.merge(obj2);//obj1 now has three properties: food, car, and animalI'd like to dynamically merge the two object properties as i...

2 years ago

1 answers
38 views
0
I want to use jQuery to make DIV come out in the center of the screen, what should I do?

I want to use jQuery to make DIV come out in the center of the screen, what should I do?

2 years ago

1 answers
74 views
0
I ask you again about javascript.

It is being developed as Django. When you click the button on the left, you want to print an application page on the right id=right.Script source now <script>function button1(){document.getEleme...

2 years ago

2 answers
128 views
0
Can I stop the Alt+space system menu from working in my web browser?

I don't want to change it to another one because the shortcut key is alt in the web application.

2 years ago

1 answers
82 views
0
When implementing web push service from node.js to socket.io

Hello, everyone Node.js wants to use socket.io to implement real-time push services on the web.There is a push server and a web server separately, but I want to push to the push server when I write a ...

« - 120 - »

© 2024 OneMinuteCode. All rights reserved.