在ThinkPHP中使用日期控件WdatePicker会出现错误,加{literal}{/literal}
{literal}
<div class="row cl">
<label class="form-label col-xs-4 col-sm-2">评论开始日期:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" οnfοcus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss',maxDate:'#F{$dp.$D(\'commentdatemax\')||\'%y-%M-%d\'}' })" id="commentdatemin" name="commentdatemin" class="input-text Wdate">
</div>
</div>
<div class="row cl">
<label class="form-label col-xs-4 col-sm-2">评论结束日期:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" οnfοcus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'commentdatemin\')}' })" id="commentdatemax" name="commentdatemax" class="input-text Wdate">
</div>
</div>
{/literal}