brandcaster.coupons.com的小部件代码不起作用

时间:2019-01-30 10:01:58

标签: javascript html

我正在尝试为客户添加来自brandcaster.coupons.com的优惠券小部件,但会引发语法错误

SyntaxError: unexpected token: ':'[Learn More] :1:3 

当我单击转到文件时,我看到:

300: file:///
200: filename content-length last-modified file-type
201: bin 0 Fri,%2018%20Jan%202019%2011:55:11%20GMT DIRECTORY 
201: boot 0 Tue,%2015%20Jan%202019%2013:34:10%20GMT DIRECTORY 
201: dev 0 Wed,%2030%20Jan%202019%2009:42:53%20GMT DIRECTORY 
201: etc 0 Wed,%2030%20Jan%202019%2003:00:40%20GMT DIRECTORY 
201: home 0 Mon,%2028%20Jan%202019%2021:32:59%20GMT DIRECTORY 
201: lib 0 Tue,%2015%20Jan%202019%2021:09:48%20GMT DIRECTORY 
201: lib64 0 Tue,%2015%20Jan%202019%2021:09:48%20GMT DIRECTORY 
201: lost+found 0 Thu,%2020%20Sep%202018%2012:22:35%20GMT DIRECTORY 
201: media 0 Wed,%2019%20Sep%202018%2013:03:22%20GMT DIRECTORY 
201: mnt 0 Tue,%2015%20Jan%202019%2016:10:31%20GMT DIRECTORY 
201: opt 0 Tue,%2015%20Jan%202019%2017:57:30%20GMT DIRECTORY 
201: proc 0 Wed,%2030%20Jan%202019%2008:28:49%20GMT DIRECTORY 
201: root 0 Tue,%2015%20Jan%202019%2014:32:14%20GMT DIRECTORY 
201: run 0 Wed,%2030%20Jan%202019%2003:00:46%20GMT DIRECTORY 
201: sbin 0 Tue,%2015%20Jan%202019%2014:28:46%20GMT DIRECTORY 
201: snap 0 Tue,%2015%20Jan%202019%2021:17:53%20GMT DIRECTORY 
201: srv 0 Thu,%2020%20Sep%202018%2012:31:12%20GMT DIRECTORY 
201: sys 0 Wed,%2030%20Jan%202019%2008:28:50%20GMT DIRECTORY 
201: tmp 0 Wed,%2030%20Jan%202019%2009:15:35%20GMT DIRECTORY 
201: usr 0 Thu,%2020%20Sep%202018%2012:26:37%20GMT DIRECTORY 
201: var 0 Tue,%2015%20Jan%202019%2021:13:46%20GMT DIRECTORY 

我尝试从src url复制代码并将其复制到文件中,然后将其用作源而不是url,但这会引发其他错误

An unbalanced tree was written using document.write() causing data from the network to be reparsed. For more information https://developer.mozilla.org/en/Optimizing_Your_Pages_for_Speculative_Parsing

Loading failed for the <script> with source “file:///dataapi/widgetscriptdetail?bid=1494150001&scriptid=140332&urlindex=0”. 

An unbalanced tree was written using document.write() causing data from the network to be reparsed. For more information https://developer.mozilla.org/en/Optimizing_Your_Pages_for_Speculative_Parsing

Loading failed for the <script> with source “file:///dataapi/widgetscriptdetail?bid=1494150001&scriptid=140332&urlindex=1”.

他们提供的用于嵌入网站的代码是

<script class="scriptId_500x670_140332" type="text/javascript">
var ci_cap_scriptId = "140332";
var ci_cap_bid = "1494150001";
var ci_cap_format = "500x670";
var ci_cap_channel = "bjsdeals.org";
</script>
<noscript><p>Coupons powered by <a href="https://www.coupons.com?pid=13903&nid=10&zid=xh20&bid=1494150001">Coupons.com</a></p></noscript>
<script type="text/javascript" src="//bc.coupons.com"></script>

0 个答案:

没有答案