var commonFunction = (function () { return { aJax: function (e) { $.ajax({ url: e.url, data: e.data, type: e.type, dataType: "json", }) .done(e.done) .fail(function (xhr, status, errorThrown) { console.debug("실패: ", xhr, status, errorThrown); }); }, addComma: function (num) { if (isNaN(num)) return num; return Number(num).toLocaleString(); } }; })();