logo
  • 教程列表
  • SO官方文档
  • 调试
    • 在不中断计算的情况下记录值
    • 管道 Debug.log
    • 时间调度器
    • Debug.Crash
  1. StackOverflow 文档
  2. Elm Language 教程
  3. 调试
  4. 管道 Debug.log

管道 Debug.log

Created: November-22, 2018

在运行时,以下内容将在控制台中显示 url 列表并继续计算

payload =
    [{url:..., title:...}, {url=..., title=...}]

main = 
    payload
        |> List.map .url -- only takes the url
        |> Debug.log " My list of URLs" -- pass the url list to Debug.log and return it
        |> doSomething -- do something with the url list
  • 时间调度器
  • 在不中断计算的情况下记录值

Copyright © 2018. All right reserved

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

  • 关于我们
  • 免责声明