write javascript function
- by sunglim
I used to write javascript functions
Utility = function (){};
Utility.SwapMember = function(name,id){
return ...
};
Utility.GetCommnaNo = function(originalNo){
return ...
};
..
alert(Utility.GetCommnaNo(totalCnt));
it's quite a bit nice way to make functions get together.
But I think there must be better way.
do you have any better way?