ajax µÄÁ÷³ÌÊÇʲô - Java / Java SE
ajax µÄÁ÷³ÌÊÇʲô
ÆÚ´ýѧϰ¡£¡£¡£
¿Í»§¶Ë²Ù×÷
Ò³Ãæ·¢³ö·þÎñÆ÷¶ËÇëÇó
µÃµ½ÇëÇó
¸üв¿·ÖÒ³Ãæ
»ù±¾Á÷³ÌÖªµÀ¸ÅÄîûÓ㬻¹ÊÇ×Ô¼ºÐ´¸öÀí½âµÃ¸üÉî¿Ì£¬ºÜ¼òµ¥µÄ¡£
ÎÒÒ²ºÜºÃÆ棬AjaxÈçºÎÓÃJavaScriptºÍXMLʵÏÖ²¿·ÖË¢ÐÂÄØ
´´½¨XMLHttpRequest,Ö¸¶¨httpÇëÇó²¢Ìá½»µ½web·þÎñÆ÷£¬»ñµÃ·þÎñÆ÷ÏìÓ¦...
index.jsp
view plaincopy to clipboardprint?
<%@ page contentType="text/html; charset=gbk"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Check.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<!--<link rel="stylesheet" type="text/css" href="./styles.css" mce_href="styles.css">-->
</head>
<mce:script type="text/javascript"><!--
var http_request = false;
function send_request(url) {//³õʼ»¯¡¢Ö¸¶¨´¦Àíº¯Êý¡¢·¢ËÍÇëÇóµÄº¯Êý
http_request = false;
//¿ªÊ¼³õʼ»¯XMLHttpRequest¶ÔÏó
if(window.X
Ïà¹ØÎÊ´ð£º
ÎÒÏëÓÃJavaдһ¸ö³ÌÐò£¬¾ÍÊÇÎÒÏëÔÚÔËÐдúÂëºó£¬ÔÚÖ¸¶¨µÄʱ¼ä´ò¿ªÄ³³ÌÐò£¬ÀýÈçÎÒÔËÐдúÂëºó£¬½²ÔÚ12£º00´ò¿ª"D:\Program Files\Tencent\QQ2009\Bin\QQ.exe"Õâ¸ö³ÌÐò£¬Çó¸ßÈËÖ¸µã¡£»¹ÓпÉÄܵĻ°ÔÚÖ¸¶¨µÄʱ¼ä ......
Ïë換個µØ·½¹¤×÷£¬²»ÊÇ´ó連¾ÍÐУ¬
java對ÈÕÍâ°ü4Äê經驗£¬ÈÕ語3級£¬±¾¿Æ
ÓÐÄÄλ´ó´ó給ÍÆÒ»個Ŷ
ÉϺ£±±¾©ºÜ¶àµÄ£¬È¥´³Ò»Ï°É
¶ÔÈյĻ¹ÐÐ.
ÄãÔõô² ......
ÎÒÏÖÔÚÓÃstruts2¿ò¼Ü,ÐèҪʹÓÃajaxʵÏÖ¾Ö²¿Ë¢Ð£¬µ«ÊÇ´ÓÈÝÆ÷Àï·µ»ØµÄÖµ²»ÖªµÀÔõô´Óstruts.xmlÅäÖÃÎļþÀïÓ³Éäµ½jspÒ³ÃæÀÒÔÇ°servletÀïдout.orint("xxxxx")¾Í¿ÉÒԵõ½~£¬µ«ÊÇÏÖÔÚÓÃstruts¾Í²»ÖªµÀÔõôР......
<script language="javascript">
var XMLHttpReq;
var cont=true;
//´´½¨XMLHttpRequest¶ÔÏó
function createXMLHttpRequest ......