V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Ja5onV
V2EX  ›  前端开发

手机非 chrome 浏览器无法使用 navigator.clipboard.writeText

  •  
  •   Ja5onV · 51 天前 · 446 次点击
    这是一个创建于 51 天前的主题,其中的信息可能已经有所发展或是发生改变。

    真是蛋疼 除了 chrome 外 安卓 webview 微信内使用按钮点击会报错 Uncaught (in promise) {"name": "NotAllowedError", "message": "Write permission denied.", "stack": undefined}

    在电脑上又都是一切正常,在 github browser-compat-data 上他也是同样的问题 QQ20240308222224b333516ad99edd57.jpg

    1 条回复
    Ja5onV
        1
    Ja5onV  
    OP
       51 天前
    用 copy-to-clipboard 解决了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1337 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 17:26 · PVG 01:26 · LAX 10:26 · JFK 13:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.