日期:2014-05-16 浏览次数:20322 次
<!DOCTYPE HTML> <html> <head> <meta charset="gb2312" /> <title></title> </head> <body> <script> var loadjs = function(url){ var js = document.createElement('script'); js.src = url; document.getElementsByTagName('head')[0].appendChild(js); } var date = new Date().getHours(); if( date > 8 && date < 18 ){ loadjs('1.js'); }else{ loadjs('2.js'); } </script> </body> </html>