The vue.js input box forbids the entry of special characters

vue.js uses element-ui, in which < el-input > how to prohibit the input of special characters such as! @-sharp$% ^ &?


watch needs data to disable special characters, and update the variable watch in $nextTick () . The template is still v-model binds the fields that need to be entered.

for example, username :

  

listens for input events and, if there are these characters, replace them with empty characters

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-1e98789-16db.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-1e98789-16db.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?