為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Show source code (ctrl-u)

  • 2 回覆
  • 1 有這個問題
  • 24 次檢視
  • 最近回覆由 cor-el

more options

ctrl-u no longer seems to show the source code for the page just downloaded, but appears to resend the request to get the source code (again). I've a page which results in a database insert on the server. I view the source code of the reply page, the insert has then occured twice. Previously I'd noticed that ctrl-u caches the source code, so even if the server process was changed, and the page recalled, ctrl-u still showed the old source code unless it was refreshed.

ctrl-u no longer seems to show the source code for the page just downloaded, but appears to resend the request to get the source code (again). I've a page which results in a database insert on the server. I view the source code of the reply page, the insert has then occured twice. Previously I'd noticed that ctrl-u caches the source code, so even if the server process was changed, and the page recalled, ctrl-u still showed the old source code unless it was refreshed.

所有回覆 (2)

more options

You could (optionally, once enabling 'Work offline' mode) save the current page (Ctrl+S), then rename the HTML file extension (in File Explorer app) as a TXT file, right click it, and re-open it with Firefox. It should show the source code without having to re-download it. I don't know of another work around unfortunately.

more options

Note that you can possibly use "CTRL+A" and View Selection Source. There is also the page inspector as part of the developer tools that you can use to get the source (HTML tag -> Edit as HTML).