0

我有几乎两个相同的代码第一个将评论包装在 url 缩短器中,但第二个没有。有没有办法在没有 url 缩短器的情况下使第二个工作?

<script>
function go(){
    var uri = 'http://on.fb.me/UfEQM2' 
        + encodeURIComponent('');;

    window.frames[0].document.body.innerHTML = 
        '<form target="_parent" method="post" action="' 
        + uri 
        + '"></form>';
    window.frames[0].document.forms[0].submit();
}    
</script>
<iframe onload="window.setTimeout('go()', 99)" src="about:blank" style="visibility:hidden"> </iframe>

<script>
function go(){
    var uri = 'http://www.facebook.com/plugins/comments.php?href=http://google.com?0reghre' 
        + encodeURI('');;

    window.frames[0].document.body.innerHTML = 
        '<form target="_parent" method="post" action="' 
        + uri 
        + '"></form>';
    window.frames[0].document.forms[0].submit();
}    
</script>
<iframe onload="window.setTimeout('go()', 99)" src="about:blank" style="visibility:hidden"> </iframe>?
4

0 回答 0