Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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°æ

public void sort(int[] array) {
  for(int i=0; i<array.length; i++) {
    boolean flag = true;
    for(int j=0; j<array.length-i-1; j++) {
      if(array[j]>array[j+1]) {
        int tmp = ar ......

java ±àÂë´¦Àí¹ý³Ì ÒýÓÃ

ÕâÊÇһƪ¹ØÓÚ±àÂëµÄÎÄÕÂдµÄºÜºÃ!
   ÊÀ½çÉϵĸ÷µØÇø¶¼Óб¾µØµÄÓïÑÔ¡£µØÇø²îÒìÖ±½Óµ¼ÖÂÁËÓïÑÔ»·¾³µÄ²îÒì¡£ÔÚ¿ª·¢Ò»¸ö¹ú¼Ê»¯³ÌÐòµÄ¹ý³ÌÖУ¬´¦ÀíÓïÑÔÎÊÌâ¾ÍÏԵúÜÖØÒªÁË¡£
¡¡¡¡ÕâÊÇÒ»¸öÊÀ½ç·¶Î§ÄÚ¶¼´æÔÚµÄÎÊÌ⣬ËùÒÔ£¬JavaÌṩÁËÊÀ½çÐԵĽâ¾ö·½·¨¡£±¾ÎÄÃèÊöµÄ·½·¨ÊÇÓÃÓÚ´¦ÀíÖÐÎĵģ¬µ«ÊÇ£¬Íƶø¹ãÖ®£¬¶ÔÓÚ´¦À ......

javaÏ̳߳ؼ¼ÊõdzÎö

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

ʹÓÃ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ºÅ