1
Cuộc gọi API của Clipboard ném Not ALLowedError mà không gọi onPermissionRequest ()
Tôi có một trang đơn giản với một nút, khi nhấn, sử dụng API Clipboard Async để ghi vào bảng tạm. <body> <button type="button" onclick="testClipboard();"> Test Clipboard </button> </body> function testClipboard() { navigator.clipboard.writeText("Clipboard API Test").then( v => alert("Success"), e => alert("Fail\n" + e)); } Điều này hoạt động trên cả …