V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
newmagicyu
V2EX  ›  问与答

请教下 input 唤起手机软键盘时,怎么修改回车键文字为发送?

  •  
  •   newmagicyu · 2019-09-24 17:49:24 +08:00 · 4739 次点击
    这是一个创建于 1669 天前的主题,其中的信息可能已经有所发展或是发生改变。

    h5 请教下 input 唤起手机软键盘时,怎么修改回车键文字为发送? type = search 键盘是“搜索” type = text 是换行 怎么才能自定为发送?

    <form @submit.prevent="formSubmit" action="javascript:return true"> <input @keyup.enter="submit" class="input" maxlength="50" placeholder="输入你遇到的问题" ref="searchInput" type="search" v-model="inputVal"> </form>
    2 条回复    2020-08-15 18:31:10 +08:00
    kokutou
        1
    kokutou  
       2019-09-25 08:11:21 +08:00 via Android
    别改,有的人是输入了字母,按回车让字母上屏的,你这样改了,这部分人会觉得这程序有问题。
    CainWang
        2
    CainWang  
       2020-08-15 18:31:10 +08:00
    楼主解决了吗 = =
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2938 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 08:16 · PVG 16:16 · LAX 01:16 · JFK 04:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.