beanshell中vars.put只能是字符串的问题解惑_.net

 

 如上代码vars.put中第一,第二个参数只能是字符串,如果希望第二个参数可以是其他类型,可以这样,vars.put("a",vars.get('b'))