﻿// JScript 文件
/*function gettras(obj,pars)
{
   var myAjax = new Ajax.Updater(
   'newtras',
  'traAjax.aspx',
  {
     method: 'get',
    parameters: pars
});
 
}*/
function gettras(obj,pars) {
  var myAjax = new Ajax.Request(
  'traAjax.aspx', // 请求的URL
  {
    method: 'get', // 使用GET方式发送HTTP请求
    parameters: pars,
    onComplete: showResponse // 指定请求成功完成时需要执行的方法
  }
);
}
function showResponse(response)
{
    $('newtras').innerHTML = response.responseText;
}

