Js-datatable Unable to send Ajax

Source: Internet
Author: User
Keywords Ajax JS PHP DataTable
Ajaxjsphpdatatable

 JS脚本如下:服务端:public function lists()    {        $pri = self::_check_pri(array(44,59,66));        **$ajax = getgpc('ajax','G');**        //接收待查询、显示的数据库字段        $select_keys = array(' ', 'pay_id','transaction_type','transaction_id','receiver_id','pay_type','pay_money','pay_date','order_state','order_money','order_id','order_date','check_date','buyer_id');        // ajax请求        if ($ajax) {            if (!is_array($pri) || (!$pri[44] && !$pri[66])) {                exit;            }            $pay_hide = 0;            if ($pri[59]) {                $pay_hide = 1;            }            self::_lists_ajax($select_keys, $pay_hide);        }                现象:在服务端打印$ajax为NULL,不懂得该如何调试从前端到服务端过程中是否有ajax通信
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.