XMLHTTP常用的方法
function Mark(num)
{
var oMark = new ActiveXObject("Microsoft.XMLHTTP");
var rnd = Math.floor(Math.random()*1000);
oMark.open("Get","XMLHTTP/Mark.aspx?Id=<%= model.Id %>&Score=" + num+"&rnd="+rnd,false);
oMark.send();
var strResult = oMark.responseText;
oMark.close;
oMark.Disponse;
ShowMsg(strResult);
}
{
var oMark = new ActiveXObject("Microsoft.XMLHTTP");
var rnd = Math.floor(Math.random()*1000);
oMark.open("Get","XMLHTTP/Mark.aspx?Id=<%= model.Id %>&Score=" + num+"&rnd="+rnd,false);
oMark.send();
var strResult = oMark.responseText;
oMark.close;
oMark.Disponse;
ShowMsg(strResult);
}