首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Ajax >

ajax 事例

2012-09-02 
ajax 例子?table idtableblack width100% border0cellspacing0 cellpadding0 statusst

ajax 例子

?

<table id="tableblack" width="100%" border="0"cellspacing="0" cellpadding="0" status="st"><tr>                   <td width="25%" />  </td><td width="25%" id="img1"                       /> </td>  </tr>       </s:iterator></table>
?

?

//删除终端设备 $("#img1").bind("click",function(e){  var memberDeviceID = $(this).attr("value");  var datatemp = "memberDeviceID="+memberDeviceID;$.ajax({ type: "post", url: "delectDevice.action" , data: datatemp, success: function(msg) {  $("#errorCode").html("<font id='errorCodeid' color='red'>"+msg+"</font>");  $("#errorCodeid").fadeOut(5000);  }});});
?

?

ajax 例子可以 超越浏览器的限制 ,在chrome 下可以使用 。

?

?

点击图片按钮删除设备。

热点排行