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.
我说的是参数名称,而不是值。我真的找不到任何东西。
我想知道是否有名称匹配 /[a-zA-Z]+_page/ 的参数。该值不相关。
这可能吗?
尝试以下操作:
params.keys.any? { |key| key.match /[a-zA-Z]+_page/ }