I have two objects: A and B:
var A={valor:0}
var B={valor:0}
A=B
A.valor=5
console.log(B.valor) // 5
I would like to know how to pass by value, since JavaScript passes by reference to objects, in this example I would like b.valor to...
I have a question regarding JSON, I have the following JSON:
{
"jsonrpc":"2.0",
"result":{
"nr":26,
"lista":[
{
"codigo":"2",
"nome":"Pratos Quentes",
"foto":"./images/cupcake.png"
},
{...
I found a lot of questions about this, and tried all the suggestions I found, however, the problem persisted.
If someone can help me, here's my problem:
I have a list of requests, this list is updated from pull to refresh, and reordered by...
Is there a way to tell if a number is a decimal, that is, if it contains a "comma"?;
A code I found was this:
Html
<input type="text" onblur="isNumber(this.value)" id="text" />
JavaScript
function isNumber(text){...
For the problem in question, I need to remove all special characters and spaces and count the possible new outputs. My intention is to separate the String with the split() method. For this, based on another expression I saw, I created thi...
I have a performance problem in paging with Entity Framework and SQL SERVER, first it does getAll to later list paging
var bdPergunta = new PerguntaRepositorioEF(contexto);
var pergunta = bdPergunta.GetAll().OrderByDescending(x => x....
In this code I read two strings and remove all first letters in common with the second string . But how do you put a null character in place of this letter in common in the two strings ?
My code looks like this:
char str1[15], str2[15];...
I've used Tuple a few times today came the doubt, this:
public class User{
public String Name {get; set;}
public String LastName {get; set;}
}
new User(){
Name = "Leonardo",
LastName = "Bonetti"
}
Is it the same as...
Are there any glaring differences between them? Whether in performance or ways of treating, what are their particularities? What would be the correct way to use it (if there is any difference)?
Is there any way? I do not want CSS neither external, nor internal, just plain html. Follow my code.
<table widths="30;60" cellpadding="1.5" border="1">
<tr>
<td>
<p >Data:</p>...