var a=document.getElementById ("a");
a.innerHTML = res+"已存在!";
<span id="a"></span>

相关文章: