Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 468 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 468 Bytes

WKWebView-LoadSandBoxResources

WKWebView手机沙盒资源Demo

H5Demo:

  1. 先开启WebServer,进入H5Demo
  2. npm install
  3. npm run serve

NativeDemo:

  1. iOS Demo: 执行 pod install
  2. 进入项目中,修改WebView load的URL 地址改成,刚才开启的WebServer。

记得,将资源放入到本机的Documents文件夹下,建议使用模拟器因为可以直接电脑上打开沙盒文件夹,然后直接放入资源文件即可。