principle:
Local logic, re-rendering
steps:1. Install the plugin: Tampermonkey
Dial: https://pan.baidu.com/s/1bpBVVT9
2. Settings:
Click on the plugin--instrument panel
Add a script
Copy the script from this text document to the script edit box and Ctrl+s Save
Click Settings to set the script
The load location and the top-level page only run settings such as
3. Commissioning:
Open the quasi-active Web page you want to debug,
such as: http://wap.cmread.com/nap/t/search.jsp?vt=3&kw=1
You'll see at the console
If you want to debug one of the components in the current page
See the pageindex Array (the list of components loaded by the current page),
I debug the first component and add a parameter to the current URL pageIndex=2714
Then add the parameter pagename= your local page name
If this is my local page address, that pageName=search_select
(Premise: Local Gulp and Tomcat to open)
The local debugging page is:
Http://wap.cmread.com/nap/t/search.jsp?vt=3&kw=1&pageIndex=2714&pageName=search_select
The corresponding script is: (the local Save code after the page refresh directly)
If you do not want to debug, you can turn off script injection
Or
Removing URLs from pageindex and pagename 2 parameters
Disadvantages or deficiencies of a method:
After 2 rendering, some events may be executed 2 times, such as a pull-up to load the second page of the AJAX request
Using the quasi-net data, using local style script, local debugging quasi-active Web page (PC applicable)