把要异步加载的页面中,需要执行的js,写在load()方法的回调函数中执行:
$(selector).load(url,data,function(response,status,xhr))
$('.layui-tab-content').load("../index.html",function () { //这里是异步加载的index.html页面 需要执行的js });
把要异步加载的页面中,需要执行的js,写在load()方法的回调函数中执行:
$(selector).load(url,data,function(response,status,xhr))
$('.layui-tab-content').load("../index.html",function () { //这里是异步加载的index.html页面 需要执行的js });
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。