Denki 發表於 2021年3月2日 03:18:07

Discus 論壇 在 pc 電腦上連接手機版 ( mobile ) 和 觸屏版(touch)設定

Discus 論壇在 pc 電腦上 訪問手機版 ( mobile ) 和 觸屏版(touch)設定

1.   更改使用者代理 user agent

一般在瀏覽器上安裝UserAgent Switcher 外掛 即可更改使用者代理

Chrome瀏覽器安裝步驟:

(1)    進入設定,選擇 擴充功能

(2)    搜尋“User Agent Switcher”



(3)    安裝好之後瀏覽器 右上角會有外掛圖示點選 馬上啟用後,選擇使用者代理即可





2.   修改程式:

網上看了好多 改這改那的,其實只改一下static\js\mobile\common.js即可

把第一二行的 註釋掉,這個判斷 是否為觸屏裝置

/*var supporttouch = "ontouchend" in document;

!supporttouch && (window.location.href ='forum.php?mobile=1');*/

3.   好現在可以在電腦上隨意切換手機版(標準版 mobile) 觸屏版(touch) 和電腦版(pc)版了
頁: [1]
檢視完整版本: Discus 論壇 在 pc 電腦上連接手機版 ( mobile ) 和 觸屏版(touch)設定