代码: 全选
/*有什么办法让$this->category(',') 不直接显示出来?
写IF判断语句使用$this->category(',')就会直接显示出来,
IF的效果根本没有!
*/
<?php
if ($this->category(',') == 'TEST') {
...
end if
?>
代码: 全选
/*有什么办法让$this->category(',') 不直接显示出来?
写IF判断语句使用$this->category(',')就会直接显示出来,
IF的效果根本没有!
*/
<?php
if ($this->category(',') == 'TEST') {
...
end if
?>
代码: 全选
<?php if($this->category == "help"): ?>
//当前分类为help缩略图,则输出内容。
<?php endif; ?>
m4go 写了:代码: 全选
<?php if($this->category == "help"): ?>
//当前分类为help缩略图,则输出内容。
<?php endif; ?>
https://app.typecho.me/coder/14.html