国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

javascript - js displays the search function in the mobile phone input method
過(guò)去多啦不再A夢(mèng)
過(guò)去多啦不再A夢(mèng) 2017-07-04 13:45:33
0
2
1112

1.<input type="search" @keyup.enter="search()"/> search will not be displayed in the mobile phone input method, but the @keyup.enter event can be used
2.< ;form action="javascript:search()"><input type="search" @keyup.enter="search()"/></form>
Display search in the mobile phone input method, The @keyup.enter event cannot be used, but enter has an effect.
The effect I want to achieve is to display the search button in the mobile phone input method, and at the same time click the search button in the mobile phone input method to implement the search function. Using vue, it is very Puzzled. .

過(guò)去多啦不再A夢(mèng)
過(guò)去多啦不再A夢(mèng)

reply all(2)
巴扎黑

The problem has been solved
<form action="javascript:void(0)"><input type="search" @keyup.enter="search()"/></form>

洪濤

The key point when the word "Search" appears is:

    The
  1. form element must have the attribute action

  2. The
  3. type

    attribute value of the input element is search

But your Vue syntax here is wrong, maybe this is what you want

<template>
<form action="#">
    <input type="search" @keyup.enter="search"/>
</form>
</template>

<script>
export default {
    // ...
    methods: {
        // ...
        search() {
        }
    }
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template