先加载js 后载控件

可以使用如下

$(document).on('click','.classname',function(){});

原文地址:https://www.cnblogs.com/smallfa/p/7735820.html