zoukankan      html  css  js  c++  java
  • ecshop Uncaught transport.js/parseResult() error: can't parse to JSON 错误解决

    1.模板底部加上一下代码

    <script type="text/javascript" language="JavaScript">
        listTable.recordCount = {$record_count};
      listTable.pageCount = {$page_count};
    
      {foreach from=$filter item=item key=key}
      listTable.filter.{$key} = '{$item}';
      {/foreach}
    
    
    </script>
    

    2.php页面加上如下代码

    /*------------------------------------------------------ */
    //-- 排序、分页、查询
    /*------------------------------------------------------ */
    elseif ($_REQUEST['act'] == 'query')
    {
        $ads_list = get_adslist();
    
        $smarty->assign('ads_list',     $ads_list['ads']);
        $smarty->assign('filter',       $ads_list['filter']);
        $smarty->assign('record_count', $ads_list['record_count']);
        $smarty->assign('page_count',   $ads_list['page_count']);
    
        $sort_flag  = sort_flag($ads_list['filter']);
        $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    
        make_json_result($smarty->fetch('ads_list.htm'), '', array('filter' => $ads_list['filter'], 'page_count' => $ads_list['page_count']));
    }
    

     

  • 相关阅读:
    GOF之单例模式
    C#面向对象设计模式纵横谈课堂笔记
    Oracle事务
    Oracle游标
    pl/sql(一)
    pl/sql(二)
    pl/sql(三)
    Oracle用户管理
    Oracle视图
    Oracle函数
  • 原文地址:https://www.cnblogs.com/wendou/p/5600806.html
Copyright © 2011-2022 走看看