我有以下的看法:
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/css/bootstrap-datepicker.min.css" /> <form class="form-horizontal" role="form" method="POST" action="{{ route('admin.create_athlete') }}"> {{ csrf_field() }} <div class="form-group"> <div class="col-md-6"> <div class="input-group date" data-provide="datepicker" data-date="2001/01/01"> <input type="text" readonly="" class="form-control"> <div class="input-group-addon"> <span class="glyphicon glyphicon-th"></span> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <!-- Datepicker --> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/js/bootstrap-datepicker.min.js"></script> <script type="text/javascript"> $.fn.datepicker.defaults.format = "yyyy/mm/dd"; $('#datepicker').datepicker() .on('changeDate', function (ev) { $('.datepicker').hide();