V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
xiaoming1992

iPad input select() 方法 bug?

  •  
  •   xiaoming1992 · Feb 10, 2022 · 1700 views
    This topic created in 1540 days ago, the information mentioned may be changed or developed.
    在其他事件处理程序中调用 input.select() 方法时, 该 input 的内容会被清空. 我的设备是在 ipad air 64G, chrome 和 safari 都能复现. 见 [https://jsbin.com/soseburovu/edit?html,output]( https://jsbin.com/soseburovu/edit?html,output)

    有什么办法 hack 一下吗?
    2 replies    2022-03-10 21:51:05 +08:00
    kwater
        1
    kwater  
       Mar 9, 2022
    模拟器和 iOS 真机无法重现,我回家也试试
    xiaoming1992
        2
    xiaoming1992  
    OP
       Mar 10, 2022
    @kwater 我已经放弃了,不 select 了。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5703 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 06:15 · PVG 14:15 · LAX 23:15 · JFK 02:15
    ♥ Do have faith in what you're doing.