jqueryÖÐÏòajaxÎÊÌâ - Web ¿ª·¢ / JavaScript
ÎÒÔÚÒ»¸öhtmlÖÐдÈçÏ´úÂ룺
JScript code:
<html>
<head>
<script type="text/javascript" charset="utf-8"
src="script/jquery-1.3.2.min.js">
</script>
<script type='text/javascript'>
$.ajax({
type: "post",
url:"result.jsp",
datType:"xml",
data:{
s:'machine'
},
beforeSend: function(XMLHttpRequest){
//ShowLoading();
},
async: false,
success: function(data, textStatus){
//$("#translation").html(data);
//alert(data.xml);
$(data).find('record').each(function()
{
//alert(i);
//µÃµ½¸÷¸ö×Ö¶ÎÄÚÈÝ
var $book = $(this);
var title=$book.find('dc\\:title').text();
var url = 'http://s.wanfangdata.com.cn/paper.aspx?f=SimpleSearch&q='+escape(title) ;
var Creator=$book.find('dc\\:Creator').text()
Ïà¹ØÎÊ´ð£º
Èç½ðɽ´Ê°ÔÍøÒ³×óÉϽÇÉϵÄÿÈÕÒ»¾ä
$('#elementID').html();
Ó¦¸Ã¿ÉÒÔ°É
±ð³ÁÁË°¡£¡~£¡
ÎÊÌâ²»¹»ÇåÎú
document.getElementById("¿Ø¼þID").innerHtml;
h ......
ÎÒÏÖÔÚÓÃstruts2¿ò¼Ü,ÐèҪʹÓÃajaxʵÏÖ¾Ö²¿Ë¢Ð£¬µ«ÊÇ´ÓÈÝÆ÷Àï·µ»ØµÄÖµ²»ÖªµÀÔõô´Óstruts.xmlÅäÖÃÎļþÀïÓ³Éäµ½jspÒ³ÃæÀÒÔÇ°servletÀïдout.orint("xxxxx")¾Í¿ÉÒԵõ½~£¬µ«ÊÇÏÖÔÚÓÃstruts¾Í²»ÖªµÀÔõôР......
Hi£¬everybody£¡
×î½üÓÐÒ»¸öϵͳÏÔʾ²ãÓõÄÊÇstruts£¬ÆäÖÐÓÐÒ»¸ö¹¦ÄܾÍÊÇ£¬ÔÚÒ»¸öjspÒ³ÃæÉÏÓкܶà±í¸ñ£¬Ã¿Ò»¸ö±í¸ñÉ϶¼ÓÐÒ»¸ö¶ÔÓ¦µÄidµ±µã»÷Õâ¸ö±í¸ñµÄʱºòµ¯³öÒ»¸öģ̬¶Ô»°¿ò£¬È»ºóÊäÈëÄÚÈÝÔÙÌá½»£¡ÒªÇó¾Í ......
ÏëʵÏÖÕâÑùµÄ¹¦ÄÜ£ºµã»÷Ò³ÃæÉϵİ´Å¥£¬Ö´Ðкǫ́º¯Êý£¬Í¨¹ýajax¼¼ÊõʵÏÖÎÞˢС£ÔÚÍøÉÏÕÒµ½µÄÀý×Ó£¬Ö´ÐкóÒ³Ãæ³öÀ´ÁË£¬µã»÷°´Å¥¾ÍËÀÁË£¬²»¶¯ÁË£¬ÔÚµ÷ÊÔ״̬ÏÂÔËÐеĻ°µ¹ÊÇ¿ÉÒÔ³öÀ´½á¹û£¬µ«ÊÇÌáʾ½Å±¾´íÎó£º408ÐÐ ......
ÇóAjaxÍêÈ«×ÔѧÊÖ²á¹âÅÌ¡£µ±È»Óеç×ÓÊé¾Í¸üÍêÃÀÁË¡£Ð»Ð»¸÷λÁË¡£¸øÏÂÔØÁ´½Ó¾ÍÐС£ºìƤÊé¡£
»ù±¾ÐÅÏ¢
×÷Õߣººéʯµ¤ [ͬ×÷Õß×÷Æ·]
´ÔÊéÃû£º ±à³Ìºì±¦Êé(Õä²Ø°æ)
³ö°æÉ磺»úе¹¤Òµ³ö°æÉç
ISB ......