A regular expression that the control's value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is text, search, tel, url, email, or password, otherwise it is ignored. The regular expression language is the same as JavaScript RegExp algorithm, with the 'u' parameter that makes it treat the pattern as a sequence of unicode code points. The pattern is not surrounded by forward slashes.
dash-core-component
的Input
组件有一个^{现在,如果只想验证字符串的格式,可以将一些正则表达式模式传递给
pattern
属性如果要基于是否在数据帧中找到输入值进行验证,可以执行以下操作:
这里的想法是根据输入值过滤数据帧。如果在数据帧中找不到输入值,我们希望使模式无效
我在这里做的方法是使模式值等于与另一个值连接的输入值,以确保模式不匹配
如果输入值与数据框中的数据匹配,则模式设置为等于输入值
相关问题 更多 >
编程相关推荐