Browser Mozilla没有';t显示日期选择器输入

Browser Mozilla没有';t显示日期选择器输入,browser,laravel,Browser,Laravel,我正在使用此函数创建日期输入 public static function date($name, $value = null, $options = array()) { $input = '<input type="date" name="' . $name . '" value="' . $value . '"'; foreach ($options as $key => $value) { $input .= ' '

我正在使用此函数创建日期输入

  public static function date($name, $value = null, $options = array()) {
        $input = '<input type="date" name="' . $name . '" value="' . $value . '"';
        foreach ($options as $key => $value) {
            $input .= ' ' . $key . '="' . $value . '"';
        }
        $input .= '>';

        return $input;
    }
公共静态函数日期($name,$value=null,$options=array()){
$input='';
返回$input;
}
在我看来

 <div class="form-group">
                {{ Form::label('sgs', Lang::get('messages.sgs').'*', array('class'=>'control-label col-lg-4')) }}
                <div class="col-lg-8">
                    {{ Helpers\Helper::date('sgs', isset($v->sgs) ? $v->sgs : '' , array(
                                'class' => 'form-control')) 
                    }}
                </div>
            </div> 

{{Form::label('sgs',Lang::get('messages.sgs').*',array('class'=>'control-label col-lg-4'))}
{{Helpers\Helper::date('sgs',isset($v->sgs)?$v->sgs:'',数组(
“类”=>“表单控件”))
}}

在Google Chrome中,它可以工作,并通过点击箭头显示datepicker,问题在于Mozilla Firefox没有显示datepicker,只是将其显示为一个简单的输入字段。为什么会发生这种情况

Firefox不支持HTML5日期选择器。因此,您需要使用一些定制的日期选择器插件。您可以在兼容性参考中看到以下内容: