【发布时间】:2016-06-07 20:46:03
【问题描述】:
在阅读 Websharper 在线示例时,我遇到了这样的示例:
Div [Attr.Style "padding: 5px;"] -< [
P [Text "Type a name in the input field below:"]
Form [
label "First Name: "
input
|>! OnKeyUp (fun _ _ -> update ())
]
P [
label "Suggestions: "
hint
]
]
我们似乎不在计算表达式中,并且由于某种原因,谷歌搜索|>! 的含义并不是特别容易。
! 修饰符在这种情况下有什么作用?它如何改变正向管道的结果?
【问题讨论】:
-
仅供参考,Stack Exchange 搜索适用于这类事情 - 只需将符号括在双引号中即可。 (例如stackoverflow.com/search?q=%22%7C%3E%22+%5Bf%23%5D)
标签: f# piping websharper