var cs = function () {
return {
abc: function () {
}
};
} ();
cs.abc = function () {
return {
test1: function () {
alert(1);
}
};
} ();
// cs.abc = function () {
// alert(2);
// };
cs.abc.test1();
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<script>
Type.registerNamespace("cs.abc");
cs.abc.t = function () {
alert(1);
};
cs.abc.t();
</script>