Image cutting in the background.Principle of avatar capturing: Use jcrop at the front end to obtain the X axis coordinates, Y axis coordinates, the plane height, and the plane width of the plane surface, and then pass the four values to the back end.
Array: an ordered set of series Elements
Attribute:
Length: used to obtain the number of array elements, that is, the maximum subscript plus 1
Method:
Sort (function): If no sorting number is specified, it is arranged alphabetically by the elements.
When you click "I want to modify", You need to generate an excel file in the background and provide the file download function.It is easy to generate an excel file and pop-up "File Download:Click the button to jump to the action. In this action, an
When I was working on the project, I used ckeditor on a page, but the problem came. I press the Enter key in the text box to automatically refresh the page. Finally, I found a solution:Copy codeThe Code is as follows: "class =" InputStyle "onkeydown
Object Attributes
Document. title // set the document title equivalent to the title tag of HTMLDocument. bgColor // set the background color of the pageDocument. fgColor // set the foreground color (text color)Document. linkColor // The link color
Because chrome, safari, and opara Browsers Do not support automatic "set as Homepage" & "add to Favorites", we can only try and catch and give an error message! It's perfect.
In Internet Explorer, many people have encountered an error in window.
What is Json?JSON (JavaScript Object Notation) is a lightweight data exchange format. It is based on a subset of JavaScript (Standard ECMA-262 3rd Edition-December 1999. JSONIt is completely independent of the language's text format, but it also
Check box When I made a check box yesterday, I thought it should be quite simple at first. taking it for granted, the main function is to click a button, for example, to select this function all, then all the following lists are selected.Later, I
In this example, the database structure is very simple, just a field. Jquery. confirm. jsCopy codeThe Code is as follows:(Function ($ ){$. Confirm = function (params ){If ($ ('# confirmOverlay'). length ){// A confirm is already shown on the
Preface:Sometimes when we write a web project-related page through js, we feel very stuck and cannot modify the memory. The following two solutions are available:1. Select the current project-properties-MyEclipse-validation-Excluded Resource and
Background:Write a Simple Chat System and issue an Htpp Url to add the tag.Implementation Code:Copy codeThe Code is as follows:String. prototype. httpHtml = function (){Var reg =/(http: \/| https: \/) (\ w | = | \? | \. | \/| & |-) +)/G;Return this.
I recently reviewed John Resig's masterpiece "Pro JavaScript Techniques" and talked about how to judge the javascript type. This article introduces two methods: typeof and constructor. Unfortunately, as the author of jquery, he did not introduce the
Copy codeThe Code is as follows:// Close. The parent window dialog box is displayed, and the Child window is closed directly.This. Response. Write (" ");
// Close. The parent window and Child Window are not displayed. Close them directly.This.
Copy codeThe Code is as follows:Regular Expression set for verifying numbers
Verification number: ^ [0-9] * $
Verify the n-digit number: ^ \ d {n} $
Verify at least n digits: ^ \ d {n,} $
Verify m-n digits: ^ \ d {m, n} $
Verify the number starting
This is a js page scroll bar plug-in.Introduce three files for use: (enter the path by yourself)Copy codeThe Code is as follows: Add a method to the container that needs to add a scroll bar.Copy codeThe Code is as follows:$ (Function (){$ ("#
This article mainly aims to solve some common webpage special effects which are expected to be different from the effect during js parsing.Original code:Copy codeThe Code is as follows:// Test codeWindow. onscroll = function (){Alert ("haha ");} It
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