大家不知道怎么一个Ajax请求,$ .load后修复的CSS问题?例如,如果我想从一个网页加载只是一个DIV,我的Ajax请求后用:
does everybody know how to fix the problem of css after an Ajax request with $.load? For example, If I want to load just a DIV from a webpage, after my Ajax request with:
$('container').load('path_to_div #div_id');
我失去了所有的一切与股利相关的CSS和脚本
I lose all the css and scripts that was associated with that div
任何想法请
我有一种错误的解决办法是:
I had that error the solution was :
$('#contentPagina)。载荷(nombrePagina,函数(){
$('#contentPagina)触发('创造')。
});
$('#contentPagina').load(nombrePagina,function(){
$('#contentPagina').trigger('create');
});