相关疑难解决方法(0)

Sharethis按钮不适用于通过ajax加载的页面

我试图在通过ajax加载的页面上使用sharethis按钮.按钮不显示.请帮忙.

此致,Pankaj

sharethis

15
推荐指数
2
解决办法
1万
查看次数

Ajax如何加载一些脚本

我有以下代码,加载到未读取的列表内容,具体取决于信息的跨度:

$(document).on('click','#addplaylisttolist',function(){
    myPlaylist.pause();
    myPlaylist.remove();
    $("#playlist_selected_songs").empty();
    $.each($(this).find("span"),function(){
            $("#playlist_individual_li").load('listen_playlist_section_content_item_add',{musicId:$(this).attr('data-id-music'),musicTitle:$(this).attr('data-title'),musicArtist:$(this).attr('data-artist'),musicFile:$(this).attr('data-mp3'),musicPoster:$(this).attr('data-poster'),musicTime:$(this).attr('data-time-music')},function(){
                $("#playlist_selected_songs").append($("#playlist_individual_li").html());
            });
        });
    myPlaylist.play();
});
Run Code Online (Sandbox Code Playgroud)

将构建播放列表的代码:

    <div class="m-t-n-xxs item pos-rlt">
        <div class="top text-right">
            <span class="musicbar animate bg-success bg-empty inline m-r-lg m-t" style="width:25px;height:30px">
                <span class="bar1 a3 lter"></span>
                <span class="bar2 a5 lt"></span>
                <span class="bar3 a1 bg"></span>
                <span class="bar4 a4 dk"></span>
                <span class="bar5 a2 dker"></span>
            </span>
        </div>

        <div id="playlist_owner_info" class="bottom gd bg-info wrapper-lg">
            <span id="playlist_owner_info_followers" class="pull-right text-sm">
                            {$item.profile_jrFollower_item_count}
                            <br>
                            Followers
            </span>
            <span id="playlist_owner_info_name" class="h2 font-thin">
                            {$item.profile_name}
            </span>
        </div>
        {jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" id="playlist_owner_img" class="img-full halfwidth" item_id=$item.profile_id …
Run Code Online (Sandbox Code Playgroud)

html ajax jquery smarty sharethis

10
推荐指数
1
解决办法
320
查看次数

标签 统计

sharethis ×2

ajax ×1

html ×1

jquery ×1

smarty ×1