Posts by srluccasonline • 103 points
5 posts
-
2
votes1
answer42
viewsA: script where a given time and day of the week redirects the user to a specific page
window.setInterval(function(){ // Setando intervalo de tempo var date = new Date(); // Criando o Objeto Date(); if(date.getHours() === 20 && date.getMinutes() === 35){ // Verificando a hora…
-
0
votes1
answer203
viewsA: Problem when trying to call a function inside onPress - React Native
You have to take some care when using Javascript, mainly mixing ES5 with ES6 Read a little more about This, Bind, Apply https://tableless.com.br/react-this-bind-so-sei-que-assim/…
-
2
votes3
answers37
viewsA: Doubt in the execution
the "method" function receives a parameter called "text" metodo(texto) Then, when passing the string "hello world" in the method("hello world"), it prints in the console the text itself, because the…
-
1
votes2
answers56
viewsA: Avoid validation on hidden elements
Add novalidate to the Formulars <form name="myform" novalidate> And on the buttons, put the type=Button <button type="button"> Tbm can use Hidden directly <input type="hidden"…
-
5
votes1
answer126
viewsQ: (NODE) What good is a processor with multiple nuclei if Nodejs only runs on one thread?
Example: If I want to set up a server, then I have to "worry" about the clock and not the amounts of nuclei ? Like, if I have two processors to buy X-Processor -> 8 2.0GHz Nucleus &&…