Ztree异步加载otherParam中的参数无法传值

下面version是动态生成的,但是像下面那样写是取不到值的

1
otherParam :{“version”,version}

写成这样就可以取到了

1
otherParam :{“version”,function(){return version}}