簡體   English   中英

無法將Google趨勢中的js代碼段添加到HTML頁面中

[英]Can't add a js snippet from google trends into an HTML page

我試圖添加一個js腳本,以使google趨勢顯示在html頁面上。 我從http://goo.gl/4C92vk的第一個圖形直接對嵌入代碼進行了分級,並將其轉換為以下代碼,這是行不通的

<html>
<body>
<script type="text/javascript" src="//www.google.com/trends/embed.js?hl=en-US&q=chicago+marathon&cmpt=q&content=1&cid=TIMESERIES_GRAPH_0&export=5&w=500&h=330"></script>
</body>
</html>

有什么想法嗎? 謝謝

<body>
<div>
<script type="text/javascript">
document.write('<iframe scrolling="no" style="border:none;" width="250" height="413" src="http://www.google.com/trends/hottrends/widget?pn=p1&amp;tn=10&amp;h=413"></iframe>');
</script>
</div>
</body>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM