我正在使用jQuery导入一个视图,返回一大块html放置在我的文档正文中。
async('get_user_data',data, function(response){
/** Response success **/
$('.stage').html(response.html);
}, function(response) {
/** Response error **/
alert('Error');
});
文档中放置的response.html
数据包含功能所需的脚本。导入数据后,脚本无法识别新的html块。