Questions tagged as 'objetos'

1
answer

JavaScript: Add object inside an array of objects

I have: var options = { title: 'Titulo', width: largura, height: altura, vAxis: { title:"Porcentagem % em vendas", format: 'decimal' }, hAxis: { title: "Seleção de clientes - Comutativa", } }...
asked by 09.10.2018 / 20:37
4
answers

What is the function super (); [duplicate]

I'm studying Java and I need to understand the logic of a code here. I wanted to know what this snippet does: public class UsuarioController extends HttpServlet { private DAO dao; public UsuarioController() { super();...
asked by 29.05.2015 / 13:22
2
answers

What is the difference between a class and an object?

I was reading a book on object orientation and these two entities are treated differently. What's the difference between the two?     
asked by 28.11.2015 / 00:49
1
answer

Angular 5, Map an array of Objects within another array of Objects

Well I'm trying to encapsulate my objects. The first object it maps to the first JSON array. export interface PraticarObject { id_assunto: number; nome_assunto: string; qt_exercicios_concluidos: string; conteudos: ConteudosPra...
asked by 27.06.2018 / 20:50
1
answer

Array in JavaScript showing duplicate values

I'm making a very basic JavaScript registration code. However, after I register my data and store it inside the vector and display it, the data is duplicated. If I type Code: 1 Name: 1 and Author 1, it shows 3 times the code, 3 times the n...
asked by 12.05.2018 / 03:01
0
answers

Access non-existent key of a JS object

Is there a problem accessing a key that does not exist in a JS object? Example: object = {}; object.name. No error is reported, but may I have a problem in the future?     
asked by 03.05.2018 / 19:06
0
answers

How do I list items with an object through one page to another. (Jquery & Ajax)

$.fn.gerarResumo = function(ajax){ nomes = new Array(); precos = new Array(); quantidades = new Array(); codigosNcm = new Array();*/ var tipoEmbarque = $(".tipoEscolhidoEmbarque").val(); var nomes...
asked by 27.04.2018 / 20:03
0
answers

how to pass HTML objects as parameters

I wanted to know how I can pass a VARIAVEL variable of type "[object HTMLTableRowElement]" as a parameter to send to a JSP that will make a $(VARIAVEL).remove() using javascript. This variable has a value similar to this...
asked by 07.02.2018 / 19:46
1
answer

How to change an attribute in a list of objects and write this list in a file

I have a list of conList objects that I want to change an attribute of an object and then write that list to a file, where each line of the file is an attribute of each object in the list. How do I do this? Edit: Code that I have so...
asked by 12.01.2018 / 03:47
2
answers

error: use of deleted function 'Fight: Fight ()'

Good afternoon, I'm trying several problems compiling the code below in code :: blocks with g ++ and I'd like to get help, thanks in advance. Main.cpp content: #include "Lutador.cpp" #include <iostream> #include <string> int ma...
asked by 23.09.2017 / 22:08