标题: 关于parval [打印本页] 作者: wj109260758 时间: 2010-6-25 15:46 标题: 关于parval 对parval(),属性指向很困扰3 j# R! e8 _; F5 O* P; L1 ]
比如: baynumber = parval(2),求注解下,为什么是(2), ( ]' @6 |* @! S3 X1 k% t9 T0 j* ~8 X) x. t5 {! F, O
如果levelnuber=????? 求注解。。。。 * L; b9 G' I0 O- Z s9 ?$ A) D# yFor developer use. This command is used inside a function that is called by the nodefunction() command. It returns the parameter passed to nodefunction specified by index as a number. The first additional parameter passed to nodefunction() is parameter 1, the second is parameter 2, etc. Parameters can also be retrieved using parnode() and parstr() for casting them as a treenode and string respectively. 9 A8 P- `) e4 l6 n5 ?# S' oExample: double passedval = parval(3);* H, Z7 X. f* o9 F' D
( x7 Y! \/ i" |5 A0 D: b
This sets passedval equal to the number that was passed to nodefunction() as parameter 3.作者: george 时间: 2010-6-25 21:42
函数解释很详细哦他应该就是个传递参数吧