Home  >  Q&A  >  body text

javascript - Question about viewing bound events? I hope seniors can give me advice.

The problem I encountered is that some websites use code written by their own js library or framework instead of jquery, but I would like to know how this effect is achieved. , is there any method?
ps: For non-jquery, using the $._data(DOMobject,'events') method in chrome and firefox does not produce results, and I cannot find the handler; other plug-ins: such as Visual Event are also unable to do anything; the above firefox element ev mark, if you click on it, you will see very original code, which is difficult to understand.
No matter what framework or library belongs to the category of js, is there any way to ignore the differences between various frameworks?
Is the event code found in Chrome like this obfuscated code? If so, how to restore it?

曾经蜡笔没有小新曾经蜡笔没有小新2731 days ago557

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-19 10:33:13

    Update the answer after truly understanding the problem:
    In the DevTool under Chrome, you can view the bound event handler of a certain element, but what you see is the obfuscated code. Do you want to get the pre-obfuscated code?
    Unless it provides the corresponding .map file, it is impossible to see the code before obfuscation. One of the purposes they use obfuscation is to make the code less readable and prevent plagiarism.

    reply
    0
  • Cancelreply