logo
  • 教程列表
  • SO官方文檔
  • 字串插值
    • 基本
    • 虛線表達
    • 渴望表達
    • 懶惰的表情
    • 表達
  1. StackOverflow 文件
  2. groovy 教程
  3. 字串插值
  4. 渴望表達

渴望表達

Created: November-22, 2018

def str = 'old'
def interpolated = "I am the ${str} value"
assert interpolated == 'I am the old value'
str = 'new'
assert interpolated == 'I am the old value'
  • 懶惰的表情
  • 虛線表達

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明