window.getBasicAjax = function (url, data, success, error) {

   try {

       $(function () {

           $.ajax({

               type: 'POST',

                url: url,

               data: data,

               cache: false,

               async: true,

               success: success,

               error: function (xhr, ajaxOptions, thrownError) {

                   alert(xhr.responseText);

                   error;

               }

           });

       });

   } catch (e) {

   }

}

 


arrow
arrow

    倧齊 發表在 痞客邦 留言(0) 人氣()