Using the quasi-net data, using local style script, local debugging quasi-active Web page (PC applicable)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.