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.
如何在修饰符中组合两个变量(数组 vals)?
这有效:
<a href="{'smartphone'|buildLink:$k:$v["brand"]}">
但这不会??
<a href="{'smartphone'|buildLink:$k:$v["brand"]+$v["brand2"]}"
Smarty 语法在允许表达式的位置方面受到限制,因此您可能必须将总和分配给临时变量:
{assign var=_sum value=$v[brand]+$v[brand2]} <a href="{'smartphone'|buildLink:$k:$_sum}"
我一直在尝试想出一个表格,学员可以在其中申请化妆课程,并且当他们提交时,数据将存储在数据库中。我是 android 编程新手,我也在使用 php 连接到数据库。
我不知道代码哪里出错了
这是我的错误:
08-01 1