<form action="/contest/vacation-photo/{year}/{month}" class="form-horizontal" role="form" enctype="multipart/form-data" method="POST">
<p class="form-group">
<label for="fieldName" class="col-sm-2 control-label">Name</label>
<p class="col-sm-4">
<input type="text" class="form-control" id="fieldName" name="name">
</p>
</p>
<p class="form-group">
<label for="fieldEmail" class="col-sm-2 control-label">Email</label>
<p class="col-sm-4">
<input type="text" class="form-control" id="fieldEmail" name="email" required>
</p>
</p>
<p class="form-group">
<label for="fieldPhoto" class="col-sm-2 control-label">Vacation photo</label>
<p class="col-sm-4">
</p>
</p>
<p class="form-group">
<p class="col-sm-offset-2 col-sm-4">
<button type="submit" class="btn btn-primary">Submit</button>
</p>
</p>
</form>
请问:上述代码中的第一行,form中的: action="/contest/vacation-photo/{year}/{month}"
上述使用handlebars的模板引擎,照理说应该使用{{}},为什么这里用{}????
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
楼主试试双括号行不行。我之前用过这个模板,忘记具体的语法了。楼主看看文档吧
踩我答案的请站出来,这种语法问题不应该是找文档吗,我说错了?