一、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); } });