<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> <HEAD><script>function a() { var a = window.document.getElementById("aa").value; window.document.getElementById("aa").value = a.replace(" ", "") + " "; var e = event.srcElement; var r = e.createTextRange(); if(a.length == 1) { r.moveStart('character',1); //定位光标位置 r.collapse(true); r.select(); } else { r.moveStart('character',a.length - 1); //定位光标位置 r.collapse(true); r.select(); }}</script> </HEAD> <BODY><input id=aa onkeyup="a()" /> </BODY></HTML>
黑色头发:http://heisetoufa.iteye.com/
相关资源:敏捷开发V1.0.pptx