jianghu52
V2EX  ›  问与答

iPhone 的输入法的复制黏贴事件 js 可以扑捉到么?

  •  
  •   jianghu52 · May 10, 2014 · 2276 views
    This topic created in 4438 days ago, the information mentioned may be changed or developed.
    最近写一个给手机访问的web。有个问题,输入法复制黏贴的时候,把字体的css都丢了。我想用js扑捉黏贴事件,但是不知道是什么,不知道有人知道不?
    Supplement 1  ·  May 10, 2014
    我用的是DIV的contentEditable=‘true’属性,也就是说直接用DIV当input使用的。因为这样还可以直接在DIV中插入图片。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1296 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:28 · PVG 01:28 · LAX 10:28 · JFK 13:28
    ♥ Do have faith in what you're doing.