|
30精币
<head>
<script language="javaScript">
function showtime(){
var now, hour, txt, minu;
now = new Date();
hour = now.getHours() + 0;
minu = now.getMinutes() >= 30 ? "30" : "00";
date1 =((now.getMonth() < 9) ? "0": "") + (now.getMonth() + 1 ) + "/" + now.getDate() + "/";
txt = date1 + hour + "点" + minu + "分开放";
document.write(txt);
}
</script>
</head>
<boyd>
<script language="JavaScript" type="text/javascript">showtime();</script>
</boyd>
上面的内容是我在网页拿到的,网页加载就会调用showtime(),输出变量txt
怎么让易语言调用showtime(),得到返回文本,调试输出 |
|