本文介绍了如何在twitter bootstrap / Jquery中创建datepicker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我的代码如下: < 脚本 src = 〜/ Scripts / jquery-1.9.1.min.js > < / script > < script src = 〜/ Scripts / bootstrap.min.js > < / script > < script src = 〜/ Scripts / jquery-ui-1.8.24.min.js > < / script > < script src = 〜/ Scripts / jquery-migrate-1.2.1.js > < / script > < link href = 〜/ Content / bootst rap.min.css rel = 样式表 / > < script src = 〜/ Scripts / moment.min.js > < / script > < script src = 〜/ Scripts / bootstrap-datetimepicker.min.js > < / script > < link href = 〜 /Content/bootstrap-datetimepicker.min.css\" rel = 样式表 / > < script type = text / javascript > $(document).ready(function(){ $(。TaskChangedDatePicker)。datepicker() }); < / script > @ Html.TextBoxFor(model => model.TaskChangedDate,new {@class =form-control TaskChangedDatePicker}) @ Html.ValidationMessageFor(model = > model.TaskChangedDate) 但是日期选择器仍然不可见,是否必须在捆绑中进行任何更改配置? 得到错误: 0x800a138f - JavaScript运行时错误:无法获取未定义或空引用的属性'msie'解决方案 (document).ready(function(){ (。TaskChangedDatePicker)。datepicker() }); < / script > @ Html.TextBoxFor(model => model.TaskChangedDate,new {@class =form-control TaskChangedDatePicker}) @ Html.ValidationMessageFor(model = > model.TaskChangedDate) 但是日期选择器仍然不可见,是否必须在捆绑中进行任何更改配置? 收到错误: 0x800a138f - JavaScript运行时错误:无法获取未定义或空引用的属性'msie' I have Code below:<script src="~/Scripts/jquery-1.9.1.min.js"></script><script src="~/Scripts/bootstrap.min.js"></script><script src="~/Scripts/jquery-ui-1.8.24.min.js"></script><script src="~/Scripts/jquery-migrate-1.2.1.js"></script><link href="~/Content/bootstrap.min.css" rel="stylesheet" /><script src="~/Scripts/moment.min.js"></script><script src="~/Scripts/bootstrap-datetimepicker.min.js"></script><link href="~/Content/bootstrap-datetimepicker.min.css" rel="stylesheet" /><script type="text/javascript"> $(document).ready(function () { $(".TaskChangedDatePicker").datepicker() });</script> @Html.TextBoxFor(model => model.TaskChangedDate, new { @class = "form-control TaskChangedDatePicker" }) @Html.ValidationMessageFor(model => model.TaskChangedDate)But still date picker is not visible , are any changes has to done in bundle config?getting error as:0x800a138f - JavaScript runtime error: Unable to get property 'msie' of undefined or null reference 解决方案 (document).ready(function () {(".TaskChangedDatePicker").datepicker() });</script> @Html.TextBoxFor(model => model.TaskChangedDate, new { @class = "form-control TaskChangedDatePicker" }) @Html.ValidationMessageFor(model => model.TaskChangedDate)But still date picker is not visible , are any changes has to done in bundle config?getting error as:0x800a138f - JavaScript runtime error: Unable to get property 'msie' of undefined or null reference 这篇关于如何在twitter bootstrap / Jquery中创建datepicker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-15 05:50