JavaScript运行时错误:无法设置未定义或空引用的属性“currentDay” [英] JavaScript runtime error: Unable to set property 'currentDay' of undefined or null reference

查看:137
本文介绍了JavaScript运行时错误:无法设置未定义或空引用的属性“currentDay”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JavaScript运行时错误:无法设置未定义或空引用的属性currentDay



 $(function(){
$(' #txtFromDate')。datepicker({
showOn: button
buttonImage: calender_icon.gif
宽度: 18
身高: 18
buttonText:
buttonImageOnly: true
dateFormat:' mm / dd / yy'
onSelect:function(){
$( this )。datetimepicker( hide);
$(' #errormessage')。html(' ');
}
});
});







如何解决此错误

解决方案

(function(){


' #txtFromDate')。datepicker({
showOn: button
buttonImage: calender_icon.gif
宽度: 18
height: 18
buttonText:
buttonImageOnly: true
dateFormat :' mm / dd / yy'
onSelect:function(){

this )。datetimepicker( hide);


JavaScript runtime error: Unable to set property 'currentDay' of undefined or null reference

$(function () {
    $('#txtFromDate').datepicker({
        showOn: "button",
        buttonImage: "calender_icon.gif",
        width: 18,
        height: 18,
        buttonText: "",
        buttonImageOnly: true,
        dateFormat: 'mm/dd/yy',
        onSelect: function () {
            $(this).datetimepicker("hide");
            $('#errormessage').html('');
        }
    });
});




How to resolve this error

解决方案

(function () {


('#txtFromDate').datepicker({ showOn: "button", buttonImage: "calender_icon.gif", width: 18, height: 18, buttonText: "", buttonImageOnly: true, dateFormat: 'mm/dd/yy', onSelect: function () {


(this).datetimepicker("hide");


这篇关于JavaScript运行时错误:无法设置未定义或空引用的属性“currentDay”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆