简体   繁体   中英

How to detect DOM mutation in a UIWebview?

Is there a good way to detect changes made by a script to the DOM ? Mutation observers don't seem to be available for Webkit on iOS.

I think DOM mutation events are available in Mobile Safari but may not be forever since they are deprecated and replaced by mutation observers. Therefore I'd suggest using mutation observers where possible and falling back to DOM mutation events.

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