if (valor.length >= 3) {
// console.log("Pesquisar:" + valor);
const dados = await fetch('/Cidade/?cidade='+valor, {
method: "get",
headers: {
"Content-Type": "application/json",
"X-Requested-With": "XMLHttpRequest"
}
});
const resposta = await dados.json();
console.log(resposta);
let html = "";
const lis= resposta.map(({ cid_nome, cid_uf, cid_id }) => "" + cid_nome + '-' + cid_uf + "")
html += lis.join('') + "";
resultado_pesquisa.innerHTML = html;
//console.log(resultado_pesquisa)
}