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

javaÖÐʹÓÃAjax¼¼Êõ

      ajax¼¼ÊõÊÇʹҳÃæÄֲܾ¿Ë¢ÐµÄÒ»ÖÖ¼¼Êõ,È«³ÆÓ¦¸ÃÊÇasynchronous JavaScript and xml´Ó¼¸¸öµ¥´Ê¾ÍÖªµÀËüµÄÇëÇóÏìÓ¦µÄ´¦ÀíÊÇÒì²½µÄ,¶øÇÒʹÓõÄÊÇJavaScriptºÍxml¼¼Êõ.
      ÎÒÃÇÔÚjavaÖÐʹÓÃajax¼¼Êõ×î¼òµ¥µÄÊÇʹÓÃËüµÄÒ»¸ö¿ò¼ÜdwrÖ»Òªµ¼ÈëÕâ¸ö°ü,×öÏàÓ¦µÄÅäÖÃ,¿ÉÊÇÎÒҪ˵µÄÊDZȽÏÂé·³µÄ¾ÍÊÇʹÓÃXmlHttpRequest×é¼þ.¾ßÌåµÄ´úÂëÈçÏÂ:1¡£³õʼ»¯·½·¨ÓÃÀ´Íê³ÉºËÐĶÔÏóµÄ³õʼ»¯.µ±È»ÕâЩ¶¼ÊÇÔÚJavaScriptÖÐÈ¡±àд.
var xmlRequest;
function createXMLRequest()
{
//Ê×ÏÈÅжÏä¯ÀÀÆ÷
if(windows.xmlHttpRequest)//»ðºüä¯ÀÀÆ÷
{
xmlRequest=new xmlHttpRequest;
}
if(IE.ActiveXObject)
{
xmlRequest=new ActiveXObject("microsoft.xmlHttp");
}
}
//ºÍ·þÎñÆ÷½¨Á¢Á¬½Ó
function search()
{
init();
var words = document.getElementById("words").value;
ajaxCoreObject.open("POST","DictServlet",true);
ajaxCoreObject.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
ajaxCoreObject.onreadystatechange = callBack;
ajaxCoreObject.send("key="+words);
}
//»Øµ÷º¯Êý´¦ÀíÊý¾Ý:
function callBack()
{
if(ajaxCoreObject.readyState==4 && ajaxCoreObject.status==200)
{
var data = ajaxCoreObject.responseText;
document.getElementById("result").innerHTML = data;
}
}

Õâ±ÈÆðʹÓÃdwr¿ò¼ÜÄÇ¿ÉÒªÂé·³¶àÁËÊÇ°É ²»¹ýѧѧÕâ¸öÒ²²»´í°¡.
   


Ïà¹ØÎĵµ£º

JavaÖм¯ºÏÈÝÆ÷ÀàListºÍSetµÄÓ÷¨

ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1  List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......

JAVAÐÔÄÜ/¸ºÔØ/ѹÁ¦²âÊÔ¹¤¾ß

1.      LoadRunner£ºÖ§³Ö¶àÖÖ³£ÓÃЭÒé¶àÇÒ¸ö±ðЭÒéÖ§³ÖµÄ°æ±¾±È½Ï¸ß£»¿ÉÒÔÉèÖÃÁé»îµÄ¸ºÔØѹÁ¦²âÊÔ·½°¸£¬¿ÉÊÓ»¯µÄͼÐνçÃæ¿ÉÒÔ¼à¿Ø·á¸»µÄ×ÊÔ´£»±¨¸æ¿ÉÒÔµ¼³öµ½Word¡¢ExcelÒÔ¼°HTML¸ñʽ¡£
2.       WebLoad£ºwebloadÊÇRadView¹«Ë¾ÍƳöµÄÒ»¸öÐÔÄܲâÊԺͷÖÎö¹¤¾ß,Ëü ......

javaÏ̳߳ؼ¼ÊõdzÎö

javaÏ̳߳ؼ¼ÊõdzÎö
ΪʲôҪÓÃÏ̳߳أ¿
ÖîÈçWeb·þÎñÆ÷¡¢Êý¾Ý¿â·þÎñÆ÷¡¢Îļþ·þÎñÆ÷»òÓʼþ·þÎñÆ÷Ö®ÀàµÄÐí¶à·þÎñÆ÷Ó¦ÓóÌÐò¶¼ÓÐÃæÏò´¦ÀíÀ´×ÔijЩԶ³ÌÀ´Ô´µÄ´óÁ¿¶ÌСµÄÈÎÎñ¡£ÇëÇóÒÔijÖÖ·½Ê½µ½´ï·þÎñÆ÷£¬ÕâÖÖ·½Ê½¿ÉÄÜÊÇͨ¹ýÍøÂçЭÒé(ÀýÈçHTTP¡¢FTP»òPOP)¡¢Í¨¹ýJMS¶ÓÁлòÕß¿ÉÄÜͨ¹ýÂÖѯÊý¾Ý¿â¡£²»¹ÜÇëÇóÈçºÎ´ïµ½£¬·þÎñÆ÷Ó¦ÓÃ³Ì ......

java »ñµÃ ip µØÖ·

Ò»°ãÇé¿ö»ñµÃ±¾µØËùÓеÄipµØÖ·£º
try   {
InetAddress   address   =   InetAddress.getLocalHost();
System.out.println(address.getHostAddress());
String   name   =   address.getHostName();
System.out.println(name);
InetAddress[]   addresses   = &nbs ......

ʹÓÃJava NIO±àд¸ßÐÔÄܵķþÎñÆ÷

תÔصØÖ·£ºhttp://www.javaeye.com/topic/40489
´ÓJDK 1.4¿ªÊ¼£¬JavaµÄ±ê×¼¿âÖоͰüº¬ÁËNIO£¬¼´ËùνµÄ“New IO”¡£ÆäÖÐ×îÖØÒªµÄ¹¦ÄܾÍÊÇÌṩÁË“·Ç×èÈû”µÄIO£¬µ±È»°üÀ¨ÁËSocket¡£NonBlockingµÄIO¾ÍÊǶÔselect(Unixƽ̨ÏÂ)ÒÔ¼° WaitForMultipleObjects(Windowsƽ̨)µÄ·â×°£¬ÌṩÁ˸ßÐÔÄÜ¡¢Ò×ÉìËõµÄ·þÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ