<div class="htmlarea"> <textarea id="runcode84724"> <script language="JavaScript"> <!--- today=new Date(); function initArray(){ this.length=initArray.arguments.length for(var i=0;i<this.length;i++) this[i+1]=initArray.arguments[i] } var d=new initArray(" 星期日"," 星期一"," 星期二"," 星期三"," 星期四"," 星期五"," 星期六"); document.write(today.getYear(),"年","",today.getMonth()+1,"月",today.getDate(),"日",d[today.getDay()+1]); //--> </script> </textarea><br><input onclick="runEx('runcode84724')" type="button" value="运行代码"> <input onclick="doCopy('runcode84724')" type="button" value="复制代码"> <input onclick="doSave(runcode84724)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>