2014-04-02 23 views
-2

HTML標記:加載HTML文件中,以酥料餅

<li tabindex='+len+' rel="popover" class="pop" data-placement="left"></li> 

的jQuery:

$(".pop").popover({ 
    title: 'To Load', 
    html: true, 
    content: function() { 
     $.get('templates/workInProcessDetail.html').success(function (data) { 
      return data; 
     }); 
    } 
}); 

請幫我出這是不加載。

+0

請提供詳細資料或例子小提琴。 –

+0

嘗試在元素上添加標題屬性。 –

+0

這裏是小提琴:http://jsfiddle.net/AmitJoki/szkrx/65/ – user3489266

回答

0

你可以返回一個iframe

content: function() { 
     return '<iframe src="templates/workInProcessDetail.html" style="border:none"></iframe>'; 
    }