input 软键盘,"换行" 转 "搜索"

 默认为 “换行”

<input type="text">
 
方法1(vue):
<form @submit.prevent="submitFn" action="javascript:return true">
        <input type="search"/>
</form>

methods:

submitFn() {
       return false;
},

方法二:

<form @submit.prevent="" action="">
        <input type="search"/>
</form>
 
原文地址:https://www.cnblogs.com/CaktyRiven/p/11928533.html