1

我正在尝试添加一个 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>

有什么想法吗?谢谢

4

1 回答 1

1
<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>
于 2013-10-13T20:51:40.410 回答