把这部分放到get回调函数里面$.get(url, function(){// 获取htmlvar modal=bootbox.dialog({title:title,message:html,});})