<div class="htmlarea"> <textarea id="runcode2772"> <title></title> <script language="javascript" type="text/javascript"> window.onload = function(){ var strWebInfo = "脚本之家www.jb51.net"; for(var i = 0;i < strWebInfo.length;i++){ document.writeln(strWebInfo.charAt(i)) } } </script> </textarea><br><input onclick="runEx('runcode2772')" type="button" value="运行代码"> <input onclick="doCopy('runcode2772')" type="button" value="复制代码"> <input onclick="doSave(runcode2772)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div> <br><div class="htmlarea"> <textarea id="runcode94486"> <title></title> <script language="javascript" type="text/javascript"> window.onload = function(){ var str = "a$h$u$i$n$a$n"; var arr = str.split('$'); for(var i = 0;i < arr.length;i++){ document.writeln(arr[i].toString()); } } </script> </textarea><br><input onclick="runEx('runcode94486')" type="button" value="运行代码"> <input onclick="doCopy('runcode94486')" type="button" value="复制代码"> <input onclick="doSave(runcode94486)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>