如何用$('#id')填充一个Div中的Page [英] How do I fill a Page In a Div With out $('#id').load

查看:156
本文介绍了如何用$('#id')填充一个Div中的Page的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

Google Chrome Dose不支持

 $(' #id')。load('  page.html'); 



但是甚至IE8支持这个简单的J查询



如何在一个Div中填写一个页面 $(' #id')。load(' page.html');



我需要这样做,因为所有浏览器都支持但Chrome无法运行它..



我认为可以做到这一点使用GET()。帮帮我



最好的问候AJ

解决方案

' #id')。load(' page.html');



但是甚至IE8支持这个简单的J查询



如何使用

 


' #id')。load(' page.html');



我需要这样做因为所有浏览器都支持但Chrome无法运行它..



我认为可以用GET()来做。帮帮我



最好的问候AJ


document.getElementById(" id")。innerHTML = page.html;



不要工作:D


Hi All
Google Chrome Dose Not Support

$('#id').load('page.html');


but Even IE8 Support this Simple J-query

How do I fill a Page In a Div With out

$('#id').load('page.html');


I Need Doing That Because All Browsers Support That But Chrome Can't Run it ..

I think can doing That With GET() . Help Me Please

Best Regards AJ

解决方案

('#id').load('page.html');


but Even IE8 Support this Simple J-query

How do I fill a Page In a Div With out


('#id').load('page.html');


I Need Doing That Because All Browsers Support That But Chrome Can't Run it ..

I think can doing That With GET() . Help Me Please

Best Regards AJ


document.getElementById("id").innerHTML = page.html;

Don't Work Too :D


这篇关于如何用$('#id')填充一个Div中的Page的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆