为啥 jmeter 里面的 beanshell 脚本不能使用 split() 的方法来分割?

仙童
仙童
订阅者
643
文章
0
粉丝
测试交流1 203字数 12阅读0分2秒阅读模式

为啥 jmeter 里面的 beanshell 脚本不能使用 split() 的方法来分割?插图

String token_cl = "Aa2lwmNB?_cl=cdki";
String[] token = token_cl.split("\?");文章源自玩技e族-https://www.playezu.com/181371.html文章源自玩技e族-https://www.playezu.com/181371.html

 
    • fiskeryang
      fiskeryang 9

      用 index 试试感觉根据?分割的话,可以不用加
      可以试试
      String[] token = token_cl.split(“?”);
      没有问题呀

    匿名

    发表评论

    匿名网友
    :?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
    确定

    拖动滑块以完成验证