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) {

   }

}

 

, , , , ,

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