这是一个扩展函数,需要初期加载的时候加载到适当的位置。
具体函数体如下:
$.namespace = function() { var a=arguments, o=null, i, j, d; for (i=0; i
使用的时候这样写,可以避免一长串的对象赋值:
$.namespace('system.user');$.system.user.funcA = function(){}
本文共 200 字,大约阅读时间需要 1 分钟。
这是一个扩展函数,需要初期加载的时候加载到适当的位置。
具体函数体如下:
$.namespace = function() { var a=arguments, o=null, i, j, d; for (i=0; i
使用的时候这样写,可以避免一长串的对象赋值:
$.namespace('system.user');$.system.user.funcA = function(){}
转载地址:http://gukjm.baihongyu.com/