首页 > 其他 > 详细

easyui --input内容改变事件

时间:2021-05-30 15:37:36      阅读:15      评论:0      收藏:0      [点我收藏+]

一、input为文本时

$("[id=‘vTC_EnumTinModel.TinModel‘]").textbox({
        onChange: function () {

            inputChange();
        }
    });

二、input 为数值时

$("[id=‘SM_SteelMeshTension.BottomRight‘]").numberbox({
        onChange: function () {
            inputChange();
        }
    });

三、当input为datetime时

$("[id=‘TC_TinCreamRecord.MakeDate‘]").datebox({
        //stopFirstChangeEvent: true,
        onSelect: function (date) {
            var year = date.getFullYear();
            var month = date.getMonth() + 7;
            var day = date.getDate() - 1;
            if (month > 12) {
                month = month - 12;
                year = year + 1;
            }
            var exDate = year + "/" + month + "/" + day;

            $("[id=‘TC_TinCreamRecord.ExpirationDate‘]").datebox(setValue, exDate);


        }

    });

 

easyui --input内容改变事件

原文:https://www.cnblogs.com/ckfuture/p/14827187.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!