如何从jquery或ajax调用完整的页面? [英] how to call complete page from jquery or ajax?

查看:104
本文介绍了如何从jquery或ajax调用完整的页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有jquery的网页当我用一个按钮的href属性调用另一个网页然后第二页加载但是jquery

I have a web page with jquery what happen is that when I call a another web page using href attribute for a button then the 2nd page loads but the jquery

$(document).ready(function()
{abccscscs;});

未加载。所以当我使用jquery添加样式表时;这不会像在第一页上那样反映在第二页上。那我该怎么办?有人告诉我从jquery调用整个页面。任何人都告诉我怎么能这样做?在此先感谢..

does not get loaded. So when I am adding style sheet using jquery; which is not getting reflected on second page as it does on first page. So what can I do. Some one told me to call the whole page from jquery.Can any one tell me how can this be performed?? Thanks in advance..

推荐答案

(文件).ready(function()
{abccscscs;});
(document).ready(function() {abccscscs;});

不加载。所以当我使用jquery添加样式表时;这不会像在第一页上那样反映在第二页上。那我该怎么办?有人告诉我从jquery调用整个页面。任何人都告诉我怎么能这样做?在此先感谢..

does not get loaded. So when I am adding style sheet using jquery; which is not getting reflected on second page as it does on first page. So what can I do. Some one told me to call the whole page from jquery.Can any one tell me how can this be performed?? Thanks in advance..


Hello Vipin,



有两种方法可以做到这一点。



1.您可以在head标签内的所有.html或.aspx页面中包含您的jquery库或其他支持的javascript。

2.您可以创建一个master和子页面(这是使用Asp.net完成的。​​)
Hello Vipin,

There are two approaches to do that.

1. You can include your jquery library or other supporting javascript in all the .html or .aspx page inside head tag.
2. You can create one master and child page (this is done using Asp.net).


这篇关于如何从jquery或ajax调用完整的页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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