Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href="curso.html?id=' + item.id +'&descriacao=' + item.descricao + '"
- class="a-item">'+ item.nome +'</a></div>
- var query = location.search.slice(1);
- var partes = query.split('&');
- var data = {};
- partes.forEach(function (parte) {
- var chaveValor = parte.split('=');
- var chave = chaveValor[0];
- var valor = chaveValor[1];
- data[chave] = valor;
- });
Add Comment
Please, Sign In to add comment