0
<div class="box"></div>

// First script
$('.box').width(100);

// Second script
$('.box').addClass('color');

// Third script
$('.box').fadeOut();

result:

<div class="color" style="width: 100px; display: none;"></div>

It might has change to do something to one DOM by different js file, if the script code was separated to many js file, it's really hard to find out the div was affected by who, is there any tool could check the execution history on DOM?

Chan
  • 1,947
  • 6
  • 25
  • 37

1 Answers1

0

Of course there is, you just need to open developer tools (F12), open network section activate it (if not activated, happens alot in IE) and refresh your site, you will see all the tracing that has occurred on your web and every file that was called in the order it was called.

Barr J
  • 10,636
  • 1
  • 28
  • 46
  • It's not like answer my question – Chan Jul 01 '15 at 07:23
  • a tool to check the execution history is only the network section in developer tools, as js is created on the run. The only way to debug js through a compiler is using IE when you run it and only in VS. – Barr J Jul 01 '15 at 07:30