简体   繁体   中英

How to make front-end page offline(only access localhost and relative path assets(js,css, png…))

I wanna use front-end code in android webview

I hope it's offline(only can access localhost)

so how should i do?

is there chrome devtools way or js way?

If you go in the Chrome devtools inside the "Network" tab, you can simulate an offline state:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM