Groups
Groups
Sign in
Groups
Groups
DBExplorer
Conversations
About
Send feedback
Help
config参数从那里来?
4 views
Skip to first unread message
cmaster
unread,
Jul 24, 2008, 10:31:08 PM
7/24/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DBExplorer
在工程的js文件中经常有这样的写法:DBE.DynamicTableGrid = function(config){}我知道这是构建组件类,可
是不知道这个config参数是从那里传来的,这个config是ext自代的吗?是一个配置文件还是一个对象?
钟摆
unread,
Jul 27, 2008, 9:16:32 PM
7/27/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DBExplorer
这个config参数是由调用者传递过来的(也就是构建这个对象的调用,例如:new DBE.DynamicTableGrid({})),在这里只
是形参。你可以将它理解成java中构建器的参数。
因为JavaScript中的函数参数个数 在调用时是可变的,并不需要和函数声明的签名完全一致,你可以少传,过着多传。
Reply all
Reply to author
Forward
0 new messages