{"id":199538,"date":"2025-05-03T14:48:08","date_gmt":"2025-05-03T06:48:08","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199538\/"},"modified":"2025-05-03T14:48:08","modified_gmt":"2025-05-03T06:48:08","slug":"ecshop-uncaught-transport-js-parseresult-error-cant-parse-to-json-%e9%94%99%e8%af%af%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199538\/","title":{"rendered":"ecshop Uncaught transport.js\/parseResult() error: can&#8217;t parse to JSON \u9519\u8bef\u89e3\u51b3"},"content":{"rendered":"<p>1.\u6a21\u677f\u5e95\u90e8\u52a0\u4e0a\u4e00\u4e0b\u4ee3\u7801   &nbsp;   &nbsp;   &lt;script type=&#8221;text\/javascript&#8221; language=&#8221;JavaScript&#8221;&gt;   &nbsp; &nbsp; listTable.recordCount = {$record_count};   &nbsp; listTable.pageCount = {$page_count};   &nbsp;   &nbsp; {foreach from=$filter item=item key=key}   &nbsp; listTable.filter.{$key} = &#8216;{$item}&#8217;;   &nbsp; {\/foreach}   &nbsp;   &nbsp;   &lt;\/script&gt;   2.php\u9875\u9762\u52a0\u4e0a\u5982\u4e0b\u4ee3\u7801   &nbsp;   &nbsp;   \/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; *\/   \/\/&#8211; \u6392\u5e8f\u3001\u5206\u9875\u3001\u67e5\u8be2   \/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; *\/   elseif ($_REQUEST[&#8216;act&#8217;] == &#8216;query&#8217;)   {   &nbsp; &nbsp; $ads_list = get_adslist();   &nbsp;   &nbsp; &nbsp; $smarty-&gt;assign(&#8216;ads_list&#8217;, &nbsp; &nbsp; $ads_list[&#8216;ads&#8217;]);   &nbsp; &nbsp; $smarty-&gt;assign(&#8216;filter&#8217;, &nbsp; &nbsp; &nbsp; $ads_list[&#8216;filter&#8217;]);   &nbsp; &nbsp; $smarty-&gt;assign(&#8216;record_count&#8217;, $ads_list[&#8216;record_count&#8217;]);   &nbsp; &nbsp; $smarty-&gt;assign(&#8216;page_count&#8217;, &nbsp; $ads_list[&#8216;page_count&#8217;]);   &nbsp;   &nbsp; &nbsp; $sort_flag &nbsp;= sort_flag($ads_list[&#8216;filter&#8217;]);   &nbsp; &nbsp; $smarty-&gt;assign($sort_flag[&#8216;tag&#8217;], $sort_flag[&#8216;img&#8217;]);   &nbsp;   &nbsp; &nbsp; make_json_result($smarty-&gt;fetch(&#8216;ads_list.htm&#8217;), &#8221;,   &nbsp; &nbsp; &nbsp; &nbsp; array(&#8216;filter&#8217; =&gt; $ads_list[&#8216;filter&#8217;], &#8216;page_count&#8217; =&gt; $ads_list[&#8216;page_count&#8217;]));   }   \u4ec5\u4f9b\u53c2\u8003\uff0c\u4e0d\u4e00\u5b9a\u9002\u5408\u89e3\u51b3\u60a8\u7684\u95ee\u9898\uff0c\u8c22\u8c22\u3002  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u6a21\u677f\u5e95\u90e8\u52a0\u4e0a\u4e00\u4e0b\u4ee3\u7801 &#038;nb&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-199538","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=199538"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199538\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}