时间:2020-09-02加入收藏
<script>
function adCheck(){
var myDate = new Date();
var aaa=myDate.getHours();
if(parseInt(aaa)>=1 && parseInt(aaa)<=5 ){ //投放时间设置
return true;
}else{
return false;
}
}
if(adCheck()){
//投放
document.writeln("<script type='text/javascript' charset='UTF-8' async src='https:\/\/yyob.com\/ad\/'><\/script>");//注意这里一定要放置的是js的广告代码
}
</script>
TGA: 技巧