Record and replay Javascript

前端 未结 6 979
时光取名叫无心
时光取名叫无心 2020-12-23 23:09

I know it is possible to record mouse movements, scrolling and keystrokes. But what about changes to the document? How can I record changes to the document?

Here is

6条回答
  •  青春惊慌失措
    2020-12-23 23:30

    I became curious by this question and implemented a proof of concept here

    https://codesandbox.io/s/jquery-playground-y46pv?fontsize=14&hidenavigation=1&theme=dark

    Using the demo

    • Try pressing record, clicking around, press record again and then click play.
    • Play creates an