Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÐéÐÄÇó½Ì jQuery jsp ajax ÎÊÌâ - Web ¿ª·¢ / Ajax

СµÜ¸Õѧajax jQuery²»¾Ã¡£ÎÒÏëÓÃjQuery°ÑjsÖеÄÖµ´«µ½ÎÒµÄjspÎļþ×ö´¦Àí£¬jsp·µ»ØjsÖеÄÊÇÒ»¸ö¶þάµÄÊý×飬ÇëÎʸ÷λ´óÏÀÔõôÄÜʵÏÖ£¿
È磺
jsÖÐ
<script>
 var a=30;
 var b=100;
 var c=40;
 var b=120;
//ÈçºÎ½«Õâ4¸öÖµ´«µ½ÎÒµÄjspÖУ¬ÔÙÓÉjsp×ö´¦Àíºó´«»Ø 

</script>


 
JScript code:
$.ajax({
type: 'POST',
data: { a:30,b:100,c:40,b:120},//ÕâÀï´«Öµ
dataType: 'json',
url: 'page.jsp',
beforeSend: function(XMLHttpRequest) {
$('#query').after('<a class="load">¶ÁÈ¡ÐÅÏ¢ÖС­¡­</a>');//ÏÔʾµÈ´ýÏûÏ¢
},
success: function(data) {
.......
},
complete: function(XMLHttpRequest){
$('.load').fadeOut('slow',function(){
$(this).remove();
.......
})
}
})


JScript code:
String a=request.getParameter("a");
String b=request.getParameter("b");
............


·Ç³£¸Ðл£¬²»¹ýÏÖÔÚ»¹ÓиöÎÊÌâÒªÂé·³Ä㣬±ÈÈçÎÒµÄjspÎļþ´¦Àíºó µÃµ½Ðí¶à¶þάÊý×éÈç
for(int x;x<=19;x++){

a[x][0]=1;
a[x][1]


Ïà¹ØÎÊ´ð£º

¹ØÓÚAJAXºÍJSPµÄһЩСÎÊÌâ¡« - Java / Web ¿ª·¢

ÎÒJSPµÄÒ³ÃæÊÇ£º
<%@ page language="java" contentType="text/html; charset=gb2312"
  %>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......

Çó½ÌJSPÏîÄ¿ÖÐÔËÓÃÄ£°åµÄ¼¼Êõ - Java / Web ¿ª·¢

ÇëÎʸ÷λ¸ç¸ç½ã½ã£¬ÈçºÎÔËÓÃÏֳɵÄÄ£°åÀ´ÖÆ×÷ƯÁÁµÄJSPÍøҳѽ,»ØÕßÓзÖ!
×Ô¼º¶¥Ï£¬×ÜÓиßÊÖ°É,ÆÚ´ýÖÐ......


Èç¹ûÖ±½ÓÒýÓýøÈ¥

¿ÉÒÔÖ±½ÓÓÃjspµÄÖ¸ÁҲ¿ÉÒÔÓÃfreemarkÒýÓ㬼ǵøø·Ö

лл¸÷λÁË£¬¿´À´Î ......

jspµÄÎÊÌâ - Java / Web ¿ª·¢

´ó¼ÒºÃ£¬ÎÒÔÚJSPµÄ³õѧÕߣ¬ÔÚ±à³ÌÖÐÓöµ½ÁËÒ»¸öÎÊÌ⣺
<jsp:useBean id="accountBiz" class="bank.AccountBiz" 
scope="application">
Õâ¸ö±êÇ©ÖÐapplicationºÍsessi ......

jsp½ØͼÎÊÌ⣡ - Java / Web ¿ª·¢

µÚÒ»¸ö£ºjsp×ö½Øͼ¼òµ¥£¬»¹ÊÇasp×ö½Øͼ¼òµ¥£¡
µÚ¶þ¸ö£ºÎÒʹÓÃjsp½Øͼ£¬jsp½ØͼÔÚ·þÎñÆ÷¶Ë½Øͼ£¬²»ÊÇÔÚ¿Í»§¶Ë½Øͼ£¬ÎÒÒªµÄÊÇ¿Í»§¶Ë½Øͼ£¡
¾ÍÏ൱ÓëQQ½ØͼһÑù£¬½ØÍêͼ²¢°üͼƬµÄÐÅÏ¢±£´æÔÚÊý¾Ý¿âÖУ¬È»ºóÏÔʾÔÚÒ³Ãæ ......

jspºÍtomcatÎÊÌ⣬¿ì·èÁË - Java / Java EE

ÎÒдÁ˸öjspÒ³Ã棬Ȼºó¸Ä¶¯ÁËһϣ¬¸Ä¶¯µÄÄÚÈݾÍÊÇÔÚjspÒ³ÃæµÄjsº¯ÊýÀï¼ÓÁ˸öalert()Óï¾ä£¬µ«ÊÇÎÒ·ÃÎÊÕâ¸öÒ³Ãæʱ£¬ËÀ»î¶¼ÊÇÔ­À´Ò³ÃæµÄÄÚÈÝ£¬ÎÒ¼ÓÁ˺ܶàalertº¯Êý»¹ÊÇû¸Ä¶¯Ç°µÄÒ³ÃæÄÚÈÝ£»tomcatÖØÆôÁË£¬Ò²ÖØв¿ÊðÕâ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ