Home > Backend Development > PHP Tutorial > thinkphp 3.2 if标签 中的条件无法判断?

thinkphp 3.2 if标签 中的条件无法判断?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:46:34
Original
1467 people have browsed it

我是这样拍判断的

<code><if condition="$article.cate_id eq $vo.cate_id">selected="selected"</if>
</code>
Copy after login
Copy after login

里面的两个变量是相等的 但是就是不输出 selected="selected"

我也打印了下
----

输出 --11-- , --12-- 13-- .....
理论上第一个应该是输出 selected的????

求解 ?

回复内容:

我是这样拍判断的

<code><if condition="$article.cate_id eq $vo.cate_id">selected="selected"</if>
</code>
Copy after login
Copy after login

里面的两个变量是相等的 但是就是不输出 selected="selected"

我也打印了下
----

输出 --11-- , --12-- 13-- .....
理论上第一个应该是输出 selected的????

求解 ?

条件中不能用点号,$article['cate_id'] eq $vo['cate_id']

Related labels:
php
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template