Guest User

Untitled

a guest
Feb 20th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <a href="curso.html?id=' + item.id +'&descriacao=' + item.descricao + '"
  2. class="a-item">'+ item.nome +'</a></div>
  3.  
  4. var query = location.search.slice(1);
  5. var partes = query.split('&');
  6. var data = {};
  7.  
  8. partes.forEach(function (parte) {
  9. var chaveValor = parte.split('=');
  10. var chave = chaveValor[0];
  11. var valor = chaveValor[1];
  12. data[chave] = valor;
  13. });
Add Comment
Please, Sign In to add comment