【发布时间】:2012-04-04 02:23:48
【问题描述】:
这是我的code:
<script type="text/javascript" src="http://widgets.twimg.com/j/2/widget.js"></script>
<a id="renderPI" href="javascript:void(0);">Render Plugin</a>
$('#renderPI').click(function () {
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 4,
interval: 30000,
width: 650,
height: 202,
theme: {
shell: {
background: '#7ee1fc',
color: '#2e2e2e'
},
tweets: {
background: '#ffffff',
color: '#949494',
links: '#009ece'
}
},
features: {
scrollbar: true,
loop: false,
vlive: false,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'all'
}
}).render().setUser('google').start();
});
当我尝试渲染 Twitter Widget 时,如果你检查 JS 控制台,你会看到奇怪的行为!为什么?我该如何解决?
编辑 似乎问题只出在 Firefox 上?我收到大量attempt to run compile-and-go script on a cleared scope 消息...
【问题讨论】:
-
这里没有奇怪的行为。您在哪个浏览器中看到它?
-
我看到这个:“尝试在已清除的范围内运行 compile-and-go 脚本”这是您所说的奇怪行为吗? (火狐和萤火虫)
-
是的 PoweRoy...它仍然调用该函数...并且小部件没有显示...
-
天哪!请注意,这只发生在 Firefox...(10)...arghh..