摘要:
function gen() { var v=document.getElementById('title').value; var s=v.toLowerCase(); s=s.replace(/[^a-zA-Z ]/g,''); s=s.replace(/ /g,'-'); document.getElementById('identifier').value=s; } var obj = document.getElementById('title'); obj.onblur = gen; /app/code 阅读全文