Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是新手编码员。这几周我学到了很多东西。现在我正在制作我的博客网站。我想要的是,在内容 div 中显示 6 或 8 篇文章的有限部分,并制作阅读更多链接以显示文章。
你能告诉我一种方法吗?
加载字符串助手并使用 word_limiter、character_limiter(google for docs)
或者,包含与您的主要“内容”字段 (TEXT) 不同的名为“摘要”(varchar(255)) 的段落。
最初加载字符串助手并执行以下操作
word_limiter("data",limit);
你可以在这里查看