code: public function asJson() 
      {
          if (!$this->isParsed) {
              $this->parseArgs();
          }
          
          $r = array(
              'totals' => $this->totals,
              'pages'  => $this->lastPage,
              'page'   => $this->page,
              'rows'   => $this->rows,
              'offset' => $this->offset
          );
          
          return (object)$r;
      }
docs: 提供给js调用的分页信息，需使用json_encode() 编码返回的对象实例
  返回 (object) array(
  'totals' => '',
  'pages'  => '',
  'page'   => '',
  'rows'   => '',
  'offset' => ''
  );
  
  @return object