风清月

代替iframe 标签实现页面引入另一个页面

电脑版发表于:2020/3/14 11:44

code:

var src="引入页面的url";
$.get(src,function(data){
$("当前页面要显示引入页面的id或者class").html(data);
});


关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢