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 下可以使用 。
?
?
点击图片按钮删除设备。