[ 首頁 / 搜尋 / 管理Discord ] [ Komica首頁 ] [ 跨版面 ] [ 雜談 / / 攝影 / 運動 ] [ 人工智慧 / 程設交流 ] [ 蔚藍檔案 / 英雄聯盟 / 米哈遊 / Minecraft / 魔物獵人 / 勝利女神:妮姬 / Pokémon / 刀劍亂舞 / Unlight ]

/cs/ - 程設交流

Computer science
名稱
Email
主題
回覆
檔案
嵌入
Options
密碼 (用來刪除檔案。)
  • Allowed file types:jpg, jpeg, png, gif, mp4, webm
  • Max filesize is 10 MB.
  • Max image dimensions are 10000 x 10000.
  • You may upload 1 per post.

  [Go to bottom]   [Catalog]   [返回]   [Archive]   [Featured]

File: 1720877425708.png (65.83 KB, 316x316, Meme_Man_on_transparent_ba….png)

6ad9ad9c No.198

本人是只會用openai寫代碼的小白
AI寫了一個能鍵盤重整右邊frame的腳本
但是發現有些版重整後鍵盤會失效 貌似焦點跑走
用AI問了焦點得到的程式碼也沒有作用
只能來請教人類島民大神了

770f41ae No.199

上程式碼讓島民直接幫你看

d45baa90 No.200

>>199
抱歉沒說清楚 說的是K島
用鍵盤方式觸發了每個板上方的"重新整理"
document.querySelector('a[href*="index.html?"]')?.click();
問題是有些版面重整後鍵盤會失效
像是綜合重整後不用點一下就能繼續用滑鼠
但是GIF、四格之類的版面就要點一下才能繼續觸發鍵盤
所以主要不知道要用甚麼程式碼才不用多點滑鼠那一下

770f41ae No.201

>>200
用$(window).focus();處理



[Go to top] [Catalog] [返回][Post a Reply]
刪除貼文 [ ]
[ 首頁 / 搜尋 / 管理Discord ] [ Komica首頁 ] [ 跨版面 ] [ 雜談 / / 攝影 / 運動 ] [ 人工智慧 / 程設交流 ] [ 蔚藍檔案 / 英雄聯盟 / 米哈遊 / Minecraft / 魔物獵人 / 勝利女神:妮姬 / Pokémon / 刀劍亂舞 / Unlight ]