Number of keywords entered by vue form check

check the keywords of the paper in the input box. You can only enter five keywords at most, each of which must be separated by a comma. How can this be realized, boss? thank you

.
Jan.19,2022

you can use regularization

rules: {
    name: [
        { pattern: /^[^;]+(;[^;]+){0,4};?$/, message: '....', trigger: 'blur' }
    ]
}     

from the point of view of problem requirements, regular prompting is the best solution.
based on the analysis of the target function, it is not recommended to use the input box to allow users to segment keywords manually. Tag tag, can be used to facilitate control and reduce user misoperation. For example,

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e2e5-2c3fd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e2e5-2c3fd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?