jquery方法:
例如:实现在section选择器中添加third,html;
$('section').load("third.html");
如果带有回调函数:
//$('section').load('third.html',function(response,status,xhr){
// $('section').html(response);
//})
iframe方法:
1、可以动态创建一个iframe标签选择器,设置src的属性值为:other.html;
var ifra = document.createElement('iframe');
// ifra.setAttribute('src','other.html');
// document.querySelector('section').appendChild(ifra);
2、也可以直接在html页面添加一个iframe标签,设置src属性值:
<iframe src="other.html" frameborder="0" col = "10" row = "10"></iframe>