开发者

How can I see the coded results of a $('#x').html(.....) call?

The browser renders my changes properly for that function, but I c开发者_JS百科annot see the source when I use the "view source" menu item. How can I see the changed source HTML?


This is browser-specific, but a debugging console (Firebug, etc.) will do this.


"View generated source" in the Web Developer Toolbar for Firefox will open a view-source like view of the current page source.


Most modern browsers have debuggers and dev tools available as addons or built-in.

Chrome and IE8 has it built-in although it's not in the right-click context menu on IE8 and is instead in 'Tools' or you can hit F12.
On Firefox you can install Firebug.

Usually what you're looking for isn't available through 'view source' but instead use 'Inspect Element'.

You'll probably find a lot of your debugging work is done in the script debugger and exploring in the DOM.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜