Member-only story

jQuery — Queues and Serialized Data

John Au-Yeung
3 min readJan 1, 2021

--

Photo by Levi Jones on Unsplash

jQuery is a popular JavaScript for creating dynamic web pages.

In this article, we’ll look at how to using jQuery in our web apps.

jQuery.merge()

The jQuery.merge() method merges the contents of 2 arrays together into the first array.

For example, we can use it by writing:

const arr = $.merge([0, 1, 2], [2, 3, 4])
console.log(arr);

Then arr is:

[0, 1, 2, 2, 3, 4]

jQuery.noConflict()

The jQuery.noConflict() method relinquishes jQuery’s control of the $ variables.

We can use it by writing:

jQuery.noConflict();
jQuery( "div p" ).hide();

We call noConflict .

Then we can invoke jQuery with jQuery instead of $ .

jQuery.noop()

The jQuery.noop() method returns an empty function.

jQuery.param()

The jQuery.param() method converts an object’s key-value pairs into a query string.

For example, we can write:

const params = {
width: 1680,
height: 1050
};
const str = jQuery.param(params)…

--

--

No responses yet