JavaScript design pattern: Observer pattern (publisher-subscriber pattern) _ javascript tips

This article mainly introduces the observer mode (publisher-subscriber mode) in JavaScript design mode. This article describes the observer mode in JavaScript in detail, you can refer to the observer mode (also known as publisher-subscriber mode) as

JavaScript design pattern-Singleton pattern-javascript tips

This article mainly introduces the singleton mode of JavaScript design patterns. This article uses a practical example to explain the singleton mode in JavaScript, for more information, see Peter Seibel, author of Practical Common Lisp. If you need

How to determine whether to have the _ javascript skills you want when multiple checkboxes are selected

When multiple checkboxes are selected, how can we determine whether there are any items we want? Below is a piece of code. Let's take a look at a problem we encountered while working on the project today, after the checkbox is selected, the selected

Explore the basic knowledge of JavaScript scopes _

This article mainly introduces the JavaScript scope. This article uses a concise language and an intuitive test result image to explain the JavaScript scope. If you need it, refer to the first article of the golden code: Js does not have

Jquery-based text upward movement similar to the effect of a horse lamp _ jquery

This is a jquery-based text running up, and its effect is similar to a marquee. In some cases, it is more practical. I would like to share with you the implementation code to achieve a similar effect, there are spaces in the lawn lamp. the effect is

Deep understanding of javascript prototype chain and inheritance _ javascript skills

This article mainly introduces the concept of javascript prototype chain and inheritance, and uses prototype chain to implement inheritance, classic inheritance, combined inheritance, and parasitic combined inheritance. Very practical. It is a very

Understanding javascript constructor and prototype object_javascript skills-js tutorial

Objects are very important in javascript. Whether you fully understand them is directly related to your basic understanding of the entire javascript system. To put it bluntly, javascript is a group of objects .. (Beep !). Common Object creation

A JavaScript code is used to process characters in textarea into every line. _ javascript tips

This article mainly shares with you a JavaScript processing example of each line of characters in textarea, which is very simple, but very practical. You can take a look at it. One JavaScript instance per day-process each line of characters in

IE6hackforjs highlights _ javascript tips-js tutorial

This article describes how to use js to implement Website Functions compatible with IE6. It is a very practical tips. If you need it, refer to the issue of iframe not displayed under ie6. In ie6, iframe is not displayed. It can only be displayed

Determine whether window. onload is used multiple times _ javascript tips-js tutorial

Window. onload must have been used by everyone. It is executed during window loading. How can we determine if window. onload is used multiple times? Next, I will share with you a method window. onload that must have been used by everyone. It is

Several methods and advantages and disadvantages of JS array merging _ basic knowledge

This article mainly introduces several methods for merging arrays in JS and compares their advantages and disadvantages. This article describes how to merge arrays in concat, loop insert, reduce, and other methods, and compares their advantages and

Learning notes for call and apply in Javascript _ javascript skills

I often see these two buddies. It seems that they are talking about their differences. I have never figured out what the role is. Now I want to record my understanding. If there are any mistakes, I hope to point them out! First, let's look at the

Quick Sorting Algorithm in javascript _ javascript tips-js tutorial

Common sorting algorithms implemented by JavaScript include Bubble sorting, selection sorting, insert sorting, shell sorting, quick sorting (recursion), quick sorting (stack), Merge Sorting, and heap sorting. Today, we will analyze in detail the

Js implementation press Ctrl + Enter to send results _ javascript tips-js tutorial

Press Ctrl + Enter to send the message. The train of thought is to listen to the onkeydown event of textarea. When the ctrl key is pressed and the keycode is 13 (Press Enter), call function 1 of sending the form, listen to the onkeydown event of

Cross-browser compatibility between css and javascript _ javascript skills

This article mainly introduces the cross-browser compatibility between css and javascript, including common css compatibility issues and javascript compatibility issues, and the compatibility analysis of common browsers such as IE and Firefox, for

Nodejs command line parameter processing module commander uses instance _ node. js-js tutorial

This article mainly introduces the example of using the nodejs command line parameter processing module commander. commander is a very tall command line parameter processing module. For more information, see, previously, we used the built-in process.

How to report an error when modifying the type attribute of input in ie8 _ javascript skills

When you select the show plaintext check box, you need to display the password entered by the user in plaintext. If you do not select this box, you need to change the ciphertext. The problem is that the type attribute abstract of the input cannot be

A Method for passing configuration parameters through script custom properties _ javascript skills

A js plug-in has been compiled. To use this plug-in, you must first introduce the plug-in Js in html, then add a script tag, and call it in it, if you need it, you can take a look at your formal career. In the past few days, you have made a unified

Common precautions for defining JavaScript Functions _ javascript skills

This article mainly introduces the common precautions for defining JavaScript Functions, including common errors and precautions. For more information, see this article to summarize common problems related to defining javascript Functions. Contains

A full screen switching special effect implemented by jquery _ jquery-js tutorial

A full screen switching effect implemented by jquery, with a small circle icon on the right side. One screen is switched at each point. Of course, you can also scroll the mouse to switch the page. Today we want to bring you a full screen switching

Total Pages: 5378 1 .... 2980 2981 2982 2983 2984 .... 5378 Go to: GO

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.