如何使用jquery问心无愧了页面刷新调用服务器端功能? [英] How to call server side function using jquery wth out page refresh?
本文介绍了如何使用jquery问心无愧了页面刷新调用服务器端功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用jQuery问心无愧了页面刷新调用服务器端功能?
How to call server side function using jquery wth out page refresh?
推荐答案
使用AJAX:
$.get('somepage.aspx', {foo: 'bar'}, function(data){
alert('the page returned this: '+data);
});
然后设置SomePage.aspx页面执行的功能和(如果需要)返回的数据。
Then set up somepage.aspx to execute the function and return the data (if needed).
更多关于jQuery的AJAX看到这样的: http://docs.jquery.com/Ajax
For more on jQuery AJAX see this: http://docs.jquery.com/Ajax
这篇关于如何使用jquery问心无愧了页面刷新调用服务器端功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文