0

我有以下 jQuery 函数:

<script>
$(document).ready(function(){
$.getScript("http://my.cdn.ext/adsense.js");
});
</script>

在 adsense.js 中,有:

<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxx";
google_ad_slot = "xxxxxxxx";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

该脚本在萤火虫上给了我以下错误;

SyntaxError: missing ; before statement 
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js

由于它是一个 js 文件,我尝试删除标签,但没有得到任何响应。这有什么办法?

4

0 回答 0