<form onSubmit = <form onSubmit = <form onSubmit = <form onSubmit = <form onSubmit ="return false;">... </from> Method two: global control keyboard press event, when the key code value is 13 directreturn false
document.onkeyup = function (e) {
    var e  = e || event
    var curryKey = e.which || e.keyCode || e.charCOde
    if (curryKey === 13) {
        return false}} <inputtype="text" onKeyUp="return ClearSubmit(event)" />
function ClearSubmit (event) {
    if (e.keyCode == 13) return false} Method 4: If an input is submitted automatically, it is easy to think of adding another input. Note that input cannot be set heretypeFor hidden, this will not work, and the form will be treated as having only one input. It needs to be set to <inputtype="text" class="form-control" style="display:none"< p style = "box-sizing: border-box! Important; word-wrap: break-word! Important;"handleOpinion" :showMessage="true" label-width="0" @submit.native.prevent ></el-form>
Copy the code