Home > Web Front-end > JS Tutorial > Detailed explanation of the use of JQuery's jqURL plug-in

Detailed explanation of the use of JQuery's jqURL plug-in

php中世界最好的语言
Release: 2018-04-26 10:55:31
Original
1651 people have browsed it

This time I will bring you a detailed explanation of the use of JQuery's jqURL plug-in. What are the precautions for using JQuery's jqURL plug-in? The following is a practical case, let's take a look.

Sometimes we need to process the parameters passed by the page address on the client. The jqURL plug-in can obtain page parameters and parameter values, obtain the page URL address, and open a new window of a specified size.

Usage introduction:

Assume the current url address is: "//m.sbmmt.com"

Method 1: Open a new page window

$.jqURL.loc("//m.sbmmt.com",{w:200,h:200,wintype:"_blank"});
Copy after login
A new 200x200 google.com window will be opened.

Method 2: Get the current page URL address

$.jqURL.url();
Copy after login
Return result: //m.sbmmt.com?a=1&b=2&c=3

Method 3: Get the parameters passed by the URL address of the current page

$.jqURL.qs();
Copy after login
Return result: a=1&b=2&c=3

Method 4: Get The address of the page after removing the parameters

$.jqURL.strip();
Copy after login
Return result: //m.sbmmt.com

Method 5: Get the value of parameter a passed by the page URL

$.jqURL.get("a");
Copy after login
Return result: 1

Method 5 has a small disadvantage, there is no way to get the parameter A=1

I believe you have mastered it after reading the case in this article Method, for more exciting information, please pay attention to other related articles on the php Chinese website!

Recommended reading:

How to deal with page anchor failure in iframe

Detailed explanation of the steps to obtain the document object in iframe

How iframe triggers parent window element events

The above is the detailed content of Detailed explanation of the use of JQuery's jqURL plug-in. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template