问题
Using jQuery Mobile, I have seen how it adds to the existing DOM when links are clicked and a related page is served. Then, when ready, it switches to that new data-role="page"
. But when I do a "view source" in the browser (Google Chrome or Mozilla Firefox), I see the original page, as delivered, without the additional things loaded later (DOM injections). How can I see what the browser really has (post-render HTML)? If it happens to be a JavaScript solution, please don't presume I know where to put it and how to trigger it to show the content.
回答1:
In Chrome: Wrench > Tools > Developer Tools would be a way to see the 'live' DOM.
来源:https://stackoverflow.com/questions/7503968/how-do-i-see-what-jquery-mobile-loaded-in-the-background