I am ordering a related json in notes in undescore.js
{8.0 , 8,5 , 5,5 }
var asc = _.sortBy(oper, function(num) {
return num.nota;
});
8.8
6.0
5.5
10.0
0.0
How do I make him unde...
Generally, I use Template Engines to render HTML via JavaScript. Usually use undescore.js .
I really like this way of making it easier to create HTML with Templates.
Example:
Somewhere in HTML:
<script type="text/template"...
I'm trying to do a search with regular expressions in an immense json this way:
json = _.filter(dados.responseJSON,function(rst){
return /rst.dst/m == tel
});
But it is not working. The goal is to make the search as if it were L...
How do I filter objects by attribute operations inside json?
var data = Object
entrada_diff: "00:00:00"
entrada_hoje: "00:00:00"
entrada_jornada: "08:00:00"
entrada_status: "PENDENTE"
funcionario_cpf: "06547457656"
funcionario_cracha: "10703"...
In my application I have 2 Views .
One of them is sending the data to the server when the client clicks on submit .
The other needs to wait for this response and run to work with the 'upgraded' data.
How would I do such a thing?
Currently I have an array object that contains the following structure
{
"ID_Local_leitura": "2134236478dysa743242579f",
"idO": "11342s36478dysa743242579",
"timeStamp": "2016-11-11T02:00:00.000Z",
"quantidadeAnimais": 50,
"tipoDeAnim...
I am making a notification system and am getting the following error:
Uncaught TypeError: _.template(...).html is not a function
Here is the code:
<script type="text/x-template" id="notifications-template">
<ul>
&l...