document.write(""); titlehaed(0); writralldaylong(); document.write(""); for(j=0;j
2 回答
四季花海
TA贡献1811条经验 获得超5个赞
懒得看你代码...标题的问题回答如下...HelloWorld vardiv=document.getElementsByTagName("div")[0];div.setAttribute("id","yourdiv");alert(document.getElementById("yourdiv").innerHTML);
长风秋雁
TA贡献1757条经验 获得超7个赞
这是我根据我对你的意图的猜测得出的结论functiontitles(titleNum){vartitleText=newArray("上午12点","上午1点","上午2点","上午3点","上午4点","上午5点","上午6点","上午7点","上午8点","上午9点","上午10点","上午11点","下午12点","下午1点","下午2点","下午3点","下午4点","下午5点","下午6点","下午7点","下午8点","下午9点","下午10点","下午11点");document.write(''+titleText[titleNum]+''); }
添加回答
举报
0/150
提交
取消