做了个小站,申请的谷歌和百度的广告,
放到js文件中后,用document.write来写的,但是前台就是不出现,请帮忙看下是哪里出错了?
document.writeln("<\script src=\"//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 970*250 -->
<ins class="adsbygoogle"
style="display:inline-block;width:970px;height:250px"
data-ad-client="ca-pub-9055653551438880"
data-ad-slot="7443996645"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>");
放到js文件中后,用document.write来写的,但是前台就是不出现,请帮忙看下是哪里出错了?
document.writeln("<\script src=\"//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 970*250 -->
<ins class="adsbygoogle"
style="display:inline-block;width:970px;height:250px"
data-ad-client="ca-pub-9055653551438880"
data-ad-slot="7443996645"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>");
