Welcome Guest.

1Answers

How to submit php data dynamically without loading Ajax in the case of ajax, write php in html

Asked by: Christopher 201 views IT June 1, 2018

<ul class="am-list">

                 <!--缩略图在标题右边-->

                  {[section name=list loop=$list]}

                  <li>

                  <a href="{[$list[list].url]}">

                  {[$list[list].title|truncate_cn:20]}

                  </a>

 

                  <p class="am-kai">

                  {[$list[list].acontent|truncate_cn:60]}

 

                   

                  <span class="am-kai news_span">点击数:{[$list[list].hits]}</span>

 

                  <span class="news_span_2">{[$list[list].riqi]}</span>

 

                  </li>

                  {[/section]}

1 Answers

  1. +3Votes  

    You don’t need AJAX, then you have to refresh the page

    You can refresh the page with location.href="",

    Joseph Mitchell- June 1, 2018 |