JQuery的js写法
时间:2011-05-18 来源:上善若水123
var CaseReasion = {
Init: function () {
$("#btnSelectedReason").click(function () {
CaseReasion.show();
});
},
Check: function () {
var reasonvalue = parseInt($("#hdReasonID").val());
return (reasonvalue != 0);
},
show: function () {
PopTip.loadCenterPop("#divShowCaseReason");
},
close: function () {
PopTip.disablePop("#divShowCaseReason");
},
setCaseReasion: function (id, name, title) {
$("#hdReasonID").val(id);
$("#lbTitle").text(title);
$("#lbTitle").attr("title", title);
PopTip.disablePop("#divShowCaseReason");
}
};
CaseReasion.Init();