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

WBOY
Release: 2016-06-06 20:46:34
Original
1396 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!