thinkphp input里面如何写 if 判断
thinkphp吧
全部回复
仅看楼主
level 1
小彬vs小欣
楼主
<input type="" name='' <if></if> /> 这样写有问题吗? 我看见有人这样写过没问题,但是我写就要报错,说我标签未关闭也就是最后那个“ /> ” 没有生效,还有什么写法@?我的版本是 3.1.2
2015年05月07日 01点05分
1
level 1
小彬vs小欣
楼主
求解答在线等。。。。。急急急急
2015年05月07日 01点05分
2
level 5
蒋三111
这个我一般都用原生判断
2015年05月10日 14点05分
3
level 2
嘘123淡定
<input type="" name=‘<?php if(a==b) echo "对的"?>’ />
2015年05月11日 01点05分
4
level 3
作业是吞金兽
是不双引号套双引号了,错误截个图
2015年05月11日 03点05分
5
level 1
忽然之间在身边
楼主解决了吗,我遇到这个问题了
2016年11月10日 05点11分
6
level 1
摩羯青春最无悔
<if condition="$app['access']">
<input type="checkbox" name="access[]" value="{app.id}_1" level="1" checked>
<else/>
<input type="checkbox" name="access[]" value="{app.id}_1" level="1">
</if>
换成这样就行了
2020年05月05日 03点05分
8
1