Loading an external script after page load with jQuery

后端 未结 5 585
别跟我提以往
别跟我提以往 2021-01-14 16:27

I\'m a little confused how to do this, basically I have a page that has a Facebook Share button inserted via JavaScript:



        
5条回答
  •  我在风中等你
    2021-01-14 17:17

    you could do something like:

    $(function() {
      $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share', function() {
        //do nothing here
      });
    });
    

提交回复
热议问题