I would like to know how to make the contents of the slots dynamic, in this case with the name / value of the product.
What I have is:
// register modal component
Vue.component('modal', {
template: '#modal'
})
// start app
new...
I have an image uploaded to my HTML page within the tag <img> , is there any way to know its original file size by JavaScript >?
Let's say I want to give console.log(larguraImagem, alturaImagem); .
Note that the s...
I am not able to list the images saved in the e node with the express, when I try to list my View does not display the image.
My configuration file:
module.exports = function(){
//recuperando a biblioteca do express
var express...
For example:
var frutas = ["goiaba", "manga", "laranja", "abacate"];
frutas.splice(1, 1);
This code, instead of removing 1 item from the second index of my array (1), only returns the item I want to delete, which in this case is "orange";...
I have a simple question about toLocaleString , I did not know this prototype and I tested it instead of doing the good old split and replace
var a = 10000.50
var b = a.toLocaleString('pt-BR')
console.log(b)
T...
Is it possible to create a custom event so that when a variable has its value changed something happens? If yes, how to do this? For example:
In a trick game I want when the variable state changes to "bot" I want the bot to play, several func...
My question is related to the behavior of a variable, since it is assigned a dynamic value in it.
For example in the code:
var x_position = window.getComputedStyle(elemento).marginLeft;
Doubt: Every time I have to read the variable...
For those of you already familiar with using jQuery, using the jQuery.fn.stop function is a simple and common thing when working with different animations on a common element.
My question is about creating jQuery extensions. I have alr...