1. The meaning of the path symbolSrc= "/js/jquery.js", ". /"This slash is the absolute path, which means the root directory of the site."
Other such as "./", ". /"," Jquery.js "," js/jquery.js "and so on are all relative paths to the current page.
2
This article mainly discusses the JavaScript in the branch and the anti-branch of this method. The topic comes from a tweet from Brendan Eich, the father of JavaScript.
1. Anti-KLA (uncurrying) this
Anti-KLA This means: put a signature on the
First, the analysis of event location properties in different browsers:
1. IE Event.x,event.y is the reference point (excluding the scrolling distance) from the outside of the parent element of the event triggering element.
2. Firefox's
After one night of trying, I seem to have found a way.
Now the head is still confused, first write down, later analysis.
Copy Code code as follows:
Find the relative position of the child element in the parent element
function
niceforms
Niceforms is a separate form beautification tool with a current version of 2.0
Official homepage: http://www.emblematiq.com/lab/niceforms/
Official Demo:
Now there are a lot of JS dynamic loading framework, such as In.js. But this is not the way I want to write, I say my thoughts.
First, a piece of Java code.
Copy Code code as follows:
Import Biz.user;
User U = new user ();
Use this class library to help you effectively process related dates. I hope you like it!
Main Features:
3.2KB Super Lightweight
Independent class library, meaning that you don't need to pour a bunch of JS
Date processing supports UNIX timestamp,
Window object
window Actions
Window objects are useful for manipulating browser windows, and developers can move or resize the browser window. These actions can be implemented in four ways:
Moveby (Dx,dy): Move the browser window relative to the
Sample code is simple, just give it, it's not much nonsense.
Copy Code code as follows:
denotoggle
javascript toggle
jquery toggle
Are the small partners aware of the ways in which JavaScript and jquery
inherited
Inheritance is an essential feature of object-oriented languages, that is, a class can reuse methods and properties of another class. There are five ways to implement inheritance in JavaScript: Object posing, call (), apply (), prototype
Copy Code code as follows:
function Automateexcel () {
try {
Start Excel and get Application object.
var oXL;
Try
{
oXL = new ActiveXObject ("Excel.Application");
}
catch (E)
{
Alert ("Unable to start excel!\n\n if you are sure that
A local variable can also be understood as a variable defined within a function, and it is obvious that accessing a local variable is faster than an extraterritorial variable because it is in the first variable object in the scope chain (the
The way it used to be--I guess it's the way most people use it.
For example, the following code-excerpt from the Sina homepage of a section of JS code, this is the way most people use.
The code above, how did you react to the reading? You may
Console.log originally is Firefox "patent", strictly speaking is installed after the firebugs of Firefox unique debugging "trick".This recruit, IE8 learned, but with more than firebugs trouble, only in the Open Debugging window (F12), console.log
The title, only ideas, no code.
This idea is a recent writing Xscroll.js class when you want to understand. Usually we say the fade effect, generally divided into two parts, half fade in, the other half is fading out. But after analysis, I think
Daniel Clifford a wonderful speech on Google I/O 2012 "Breaking the JavaScript Speed Limit
With V8 ". In his speech, he explained in depth 13 simple code optimization methods that will allow your code to compile/run your JavaScript code faster in
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