When h5 using location.href
to go to other url, the following delegate api will be called. But it doesn't work when h5 using pushState
. Why this happen? And how can I know when the h5 change its content at this time?
- webView:shouldStartLoadWithRequest:navigationType: