Home > Backend Development > PHP Tutorial > Detailed explanation of the usage of limit in Dreamweaver (calling the specified article under the specified id), Dreamweaver limit_PHP tutorial

Detailed explanation of the usage of limit in Dreamweaver (calling the specified article under the specified id), Dreamweaver limit_PHP tutorial

WBOY
Release: 2016-07-12 09:08:12
Original
839 people have browsed it

Detailed explanation of the usage of limit in Dream Weaver (calling the specified article under the specified id). The usage of limit in Dream Weaver

limit can be roughly understood as: calling the specified article under the specified id .

The following is a code snippet, friends who need it can take it by themselves:

<span>{dede:arclist typeid='6' row='1' limit='0,1'}
</span><span>  <</span><span>li</span><span>></span>
<span>    <</span><span>a </span><span>href</span><span>="[field:arcurl/]"</span><span> target</span><span>="_blank"</span><span> rel</span><span>="nofollow"</span> <span>></span>
      <span><</span><span>img </span><span>class</span><span>="zhuanjia_img"</span><span> src</span><span>=""</span> <span>/></span>
<span>    </</span><span>a</span><span>></span>
<span>    <</span><span>h3</span><span>><</span><span>a </span><span>href</span><span>="[field:arcurl/]"</span><span> target</span><span>="_blank"</span><span>></span>[field:title/]<span></</span><span>a</span><span>></</span><span>h3</span><span>></span>
    <span><</span><span>p</span><span>><</span><span>span</span><span>></span>简介:<span></</span><span>span</span><span>></span>[field:description function="cn_substr(@me,55)"/]...<span><</span><span>a </span><span>style</span><span>="color:#C2316C;"</span><span> href</span><span>="[field:arourl/]"</span><span>></span>【详情】<span></</span><span>a</span><span>></</span><span>p</span><span>></span>
<span>    <</span><span>div </span><span>class</span><span>="z11"</span><span>></span>
<span>      <</span><span>div </span><span>class</span><span>="gz1"</span><span>><</span><span>a </span><span>href</span><span>="[field:arcurl/]"</span><span>  rel</span><span>="nofollow"</span> <span>></span>详细介绍<span></</span><span>a</span><span>></</span><span>div</span><span>></span>
<span>      <</span><span>div </span><span>class</span><span>="gz2"</span><span>><</span><span>a </span><span>href</span><span>="javascript:void(0)"</span><span> onclick</span><span>="openChat()"</span><span> target</span><span>="_blank"</span><span>  rel</span><span>="nofollow"</span> <span>></span>在线咨询<span></</span><span>a</span><span>></</span><span>div</span><span>></span>
    <span></</span><span>div</span><span>></span>
  <span></</span><span>li</span><span>></span><span>
{/dede:arclist}</span>
Copy after login

The above code calls 1 article in the column with ID 6 (counting from the first article, take 1 article)

limit是一个灵活的取数标签,作用是取出指定的文章。<br />limit='0,1',表示从第一个文章开始,取1篇文章。<br />limit='1,1',表示从第二个文章开始,取1篇文章。<br />limit='2,3',表示从第三个文章开始,取3篇文章。<br />以此类推,用法有点类似row标签,但是比row更加灵活。
Copy after login

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1056405.htmlTechArticleDetailed explanation of the usage of limit in Dreamweaver (calling the specified article under the specified id), the general usage of limit in Dreamweaver It can be understood as: calling the specified article under the specified id. The following is a code snippet, you need...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template