Detailed explanation of the usage of limit in Dreamweaver (calling the specified article under the specified ID)

WBOY
Release: 2016-07-29 09:15:10
Original
1181 people have browsed it

The usage of

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:

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

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

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

The above introduces the detailed usage of limit in Dreamweaver (calling the specified article under the specified ID), including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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