Js page refresh to achieve internal and external refresh of the Framework (overall, partial) This summary is frame Refresh:
Buttons inside and outside the framework can define webpage redirection,
The buttons on the internal pages of the framework
This can be said to be one of the most intriguing features in javascript, just like the tenses in high school English, such as the passive tense, the past tense, the present tense, and the past tense, no matter how many times you miss it, the next
Use of the indexOf method String type in the JavaScript Array
Let's take a look at the well-known string usage.
let str = 'orange'; str.indexOf('o'); //0 str.indexOf('n'); //3 str.indexOf('c'); //-1
Here 0 and 3 are the positions where o and n
How to compile sass Gulp is an automated tool that frontend developers can use to process common tasks:
1. Set up a web Server
2. automatically reload the browser when saving the file
3. Use preprocessors such as Sass and LESS
4. Optimize
Use native JS to encapsulate the Tap event to solve Ms latency on mobile terminals
FastClick
The existing plug-in fastclick can solve this problem, but it also has drawbacks:
The latest version of the plug-in on GitHub is 25.4kb in size, lightweight
Jquery focuses on DOM operations. AngularJS focuses on view models and bidirectional binding. Jquery focuses on DOM operations. AngularJS focuses on view models and bidirectional binding.
DOM Operation Problems
Avoid using jQuery to operate the DOM,
From exports and module. although the commonJS modular writing method is not used in the current work, the source code or article of this writing method is often seen, and sometimes exports and module are seen. exports is a bit silly... I think
JavaScript: it is the only way to shorten the length of an array by setting the length attribute of an array. if you use the delete operator to delete elements in an array, although the element becomes undefined, The length attribute of the array
In the past few days, I read SteveSouders's high-performance website construction guide book. Although this book may be somewhat old, however, the guidelines for website performance optimization proposed in a thin booklet are still very valuable. In
This article describes Vue in detail. the Processing Form of the JS getting started tutorial has some reference value. If you are interested, you can refer to the examples in this article to share Vue with you. JS form processing content for your
An example of JS anonymous function is described in this article. We will share this with you for your reference. The details are as follows:
/* Anonymous function */(function () {var foo = 10; var bar = 2; alert (foo * bar) ;}) ();/* anonymous
The definition and usage of JS classes are deeply explored in this article. Examples of this article analyze the definition and usage of JS classes. We will share this with you for your reference. The details are as follows:
Js can define its own
Details about the event processing mechanism in node. js EventEmitter class
The EventEmitter class is defined in the event module used by Node. js to implement various event processing. All objects that may trigger the event are instance objects
A valid number is retained. For example, 199.999 is processed as varstrparseFloat (199.999 ). toFixed (10); write 10 here to ensure that the number of decimal places is retained from time to time, and the decimal point behind him is 0 without
The following small series will provide you with a method for js to locate an anchor. I think this is quite good. Now I will share it with you and give you a reference. Let's take a look at the small editor. You can set the anchor and anchor on the
JS implementation countdown (days, hours, minutes, And seconds) This article explains the detailed process of JS implementation countdown for your reference. The details are as follows:
Note:The parseInt () function parses a string and returns an
Js form login verification example this article describes how to verify js form login. We will share this with you for your reference. The details are as follows:
Project Background Management System
Five tips during JavaScript development are actually five quick tips:
Only
Use the submit event on the element
If you want to bind an event handler to formInstead of binding a click event to the submit button.March: This method is good, but
[Guide] We know in factory mode that to create an object, we can use the following code: varusernewObject (); create an object user using the new operator. name is on the triangle lake; Add the property user to the object. age22; user. address Hubei
The switch statement is used to execute different actions based on different conditions.
JavaScript switch statement
The switch statement is used to execute different actions based on different conditions.
JavaScript switch statement
Use the switch
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