Javascript 小写字母依次变为大写 时间:2020-05-12 人气:0 <script LANGUAGE="JavaScript"> ripplespeed = 300; string = "javascript"; function rippleText() { box = document.scrollform.box; arg0 = rippleText.arguments[0]; i = (arg0) ? ( (arg0 == string.length) ? 0 : arg0) : 0; box.value = string.substring(0,i) + (string.substring(i,i+1).toUpperCase()) + string.substring(i+1, string.length); scrollcmd = "rippleText("+(i+1)+")"; timer = window.setTimeout(scrollcmd, ripplespeed); } </script> [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 加载全部内容