Table of Contents
How to view the binding events of dom (view the binding events of jquery)
Where are the type options of the new version of network?
Find the required resources in Sources, and find a certain function in the js file
Format js, (you can also Help you format your local js)
breakpoints in the source tab, for dom breakpoints, xhr breakpoints, exception breakpoints
Some problems encountered
Home Web Front-end HTML Tutorial chrome skills record some unfamiliar things before_html/css_WEB-ITnose

chrome skills record some unfamiliar things before_html/css_WEB-ITnose

Jun 24, 2016 am 11:52 AM

I have been using Chrome for I don’t know how many years, but there are still some techniques that I am not familiar with. I will record the useful ones and those that I am not familiar with

How to view dom Binding events (see jquery binding events)

Where are the type options of the new version of network?

Find the required resources in Sources, and find a certain resource in the js file Function

formats js, (it can also help you format your own local js)

breakpoints, dom breakpoints, xhr breakpoints, exception breakpoints

Some problems encountered

How to view the binding events of dom (view the binding events of jquery)

View the binding events of dom, this is a very necessary skill. Chrome supports it too Very good

As shown in the picture below, select dom, and the listenersBody in Event Listeners


The problem is coming

listenersBody is not displayed at all Completely, what should I do?

In the listenersBody line, right-click the mouse, and a pop-up box store as global variable will appear

Click store as global variable, and the entire function will be displayed in the console.

The problem is here again

Many people now use jq to write js, but they can’t see the original binding event

It’s just me As far as I know, there are two ways to see bound events

1. Download the chorme plug-in Visual-Event

Okay, the problem is here again, the chrome web store is not available in China at all It can’t be opened

The solution is FQ, or

download crx from this address and install it manually

After installing Visual-Event, click on the icon that looks like an eye icon, the bound events will be displayed when the mouse is placed on the DOM that needs to be viewed


2. Find

through the DOM attributes and $.cache method

Select the dom you want to view events

View its attributes (jquery attributes of a number) as shown below

Get the attribute value and enter $.cache[attribute in the console tab Value] Expand and you can see the bound events



Where are the type options of the new version of network?

You can’t see categories (documents, images, scripts, xhr...) directly in the new chrome

There is a small funnel, you can see it by clicking on it


Find the required resources in Sources, and find a certain function in the js file

Sometimes you need to find a certain js file, you can do this

1 .Open the Sources tab

2. Press ctrl p

3. Enter the js file name you are looking for

Of course this is not just a smart search for js, html and css You can also search


Sometimes you need to find a function in js

1. First select a js file (required)

2.crtl shift o

If you don’t select the js file, press crtl shift o to open the tag manager


Format js, (you can also Help you format your local js)

Format js, use curly brackets.

Js on the Internet are compressed and merged, use curly brackets to format the js on the Internet js

Of course, you can also format local js using curly brackets. Paste the local js into the open js and press the curly brackets

This formatting curly bracket is just for There are only


breakpoints in the source tab, for dom breakpoints, xhr breakpoints, exception breakpoints

dom breakpoints

There are 3 forms of dom breakpoints

1.Subtree modifications (the monitored dom sub-nodes change)

2.Attributes modifications (the monitored dom attributes change)

3.Node removal (when the monitored dom is deleted)

After setting these breakpoints, when changes are monitored, the place where the js changes after the breakpoint will be

For example, deletion will cause a breakpoint to the deleted js location


How to set a breakpoint?

1. Open the Element panel

2. Select a dom element and right-click

3. Select break on... and 3 breakpoint methods will pop up.

As shown below


xhr breakpoint

After setting an xhr breakpoint, you can enter the place where the js that initiated the request

The operation is as follows

1. Open the source tab

2. There is an XHR Breakpoints

3. There is a number at the end and a period to add

You can breakpoint all xhrs. If you only want to breakpoint a certain xhr, enter its address, as shown in the picture

If you want to delete the breakpoint, select a certain one , right click the mouse to delete


Exception breakpoint

You can locate the location where the js throws the exception, which is convenient for troubleshooting

The operation is as follows

1. Enter the socurce tab

2. Click the round button, as shown in the picture below

Some problems encountered

I want to download the plug-in, but the chrome web store cannot be opened. What should I do?

I use chrome Changyou version, which can be FQ


I used the official chrome plug-in pagespeed insights to test the performance of the website, but it always gets stuck in the middle?

That’s because of the wall, FQ test


How to debug online js files?

1. Replace

2 with fiddler. If it is a js file, you can format breakpoints. If an error is not reported when loading, you can directly copy the original uncompressed code and run it

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is the purpose of the <progress> element? What is the purpose of the <progress> element? Mar 21, 2025 pm 12:34 PM

The article discusses the HTML &lt;progress&gt; element, its purpose, styling, and differences from the &lt;meter&gt; element. The main focus is on using &lt;progress&gt; for task completion and &lt;meter&gt; for stati

Is HTML easy to learn for beginners? Is HTML easy to learn for beginners? Apr 07, 2025 am 12:11 AM

HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

What is the purpose of the <datalist> element? What is the purpose of the <datalist> element? Mar 21, 2025 pm 12:33 PM

The article discusses the HTML &lt;datalist&gt; element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

What is the viewport meta tag? Why is it important for responsive design? What is the viewport meta tag? Why is it important for responsive design? Mar 20, 2025 pm 05:56 PM

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

What is the purpose of the <iframe> tag? What are the security considerations when using it? What is the purpose of the <iframe> tag? What are the security considerations when using it? Mar 20, 2025 pm 06:05 PM

The article discusses the &lt;iframe&gt; tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

The Roles of HTML, CSS, and JavaScript: Core Responsibilities The Roles of HTML, CSS, and JavaScript: Core Responsibilities Apr 08, 2025 pm 07:05 PM

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

What is the purpose of the <meter> element? What is the purpose of the <meter> element? Mar 21, 2025 pm 12:35 PM

The article discusses the HTML &lt;meter&gt; element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates &lt;meter&gt; from &lt;progress&gt; and ex

Understanding HTML, CSS, and JavaScript: A Beginner's Guide Understanding HTML, CSS, and JavaScript: A Beginner's Guide Apr 12, 2025 am 12:02 AM

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

See all articles