如何通過手機訪問本地編寫的html頁面 npm install http-server -g(沒安裝過安裝一遍) cd到你的項目文件夾下 然后終端輸入http-server image.png 在手機上打開ip就可以訪問啦5涛病藤乙!