Vue 表单验证-中文
Rules: {
filed: [
{
required: true,
message: '请输入课程名称',
trigger: 'change'
},
{
pattern: /[^\u4e00-\u9fa5]/,
message: "课程编号不能为中文",
trigger: "change"
}
]
}