json的命名空间

<script>
var zgz={};

zgz.common={
getByClass: function ()
{
},
myAddEvent: function ()
{
}
};

zgz.fx={
startMove: function ()
{
},
drag: function ()
{
}
};

zgz.common.getByClass()
</script>

posted @ 2015-02-06 20:52  菜园子丶  阅读(607)  评论(0编辑  收藏  举报