这是我的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
消息......