Coder Social home page Coder Social logo

ban-input-ime's Introduction

ban-input-ime  

chrome在30.1.n.n.n版本之后就不支持css里面ime-mode了在网上查了很多关于chrome禁用输入法的解决办法,试过之后都不行   最最让人头疼的是输入法输入之后按下enter键,不管你怎么做,输入的内容都会显示,此时的enter是在输入法里面起作用,你的代码对它无用,相当于复制粘贴。 在这里js部分给input绑定onkeyup事件和onblur事件       输入法最让人头疼的是,keyup事件能解决大多时候的情况。     blur事件可以有效解决这个让人头疼的问题,但不是最好的解决方法,当input失去焦点的时候我们将里面的内容做一次处理。     本内容解决的是只能输入数字。
index    

ban-input-ime's People

Contributors

wolancy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.