Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个助手,我想同时使用内联和块。我只需要确定一个块是否被传递,看看它应该做什么。我在注册的辅助函数范围内看不到任何似乎有帮助的东西。
检查是否fn存在options将判断是否通过了块:
fn
options
!!(options.fn)