JavaScript is the most characteristic and let you confused the function of one, the following look at the common operation: Zhongyuan Entertainment
1
functiondoit(){
2
.....
JS is a very magical language, the internal system of many functions can help us to make a number (in) system conversion;JS can be directly used in 16 binary;var a = 0xFF; 255Converts any binary string to decimal, such as binary, octal, hexadecimal,
the first chapter of expressive JavaScriptFirst, the function to add a new methodIf you add a person to a Function object The new method can be written like this:Function.porototype.method ("Method name", Function () {Execution of content})1 II.
The format is as follows:var str={name: "Name", Sex: "Gender"};//josn object var str2='{name: ' Name, Sex: ' Gender ' '}'//josn stringTwo Str is not the same;Str.name available;Str2.name ErrorThe second STR requires a conversionMethod 1:js the
When Eval is performed, the following procedure is performed for eval (x):1. If the type of x is not a string, it will return x;2. Convert x to ECMAScript code. If the conversion fails, blame throws the SyntaxError exception.3. Create a new
1. Quick Sorting ideas(1) In the dataset, select an element as the "datum" (pivot).(2) All elements smaller than "datum" are moved to the left of "datum", and all elements that are greater than "datum" are moved to the right of "datum".(3) for the
Use jquery. qrcode. js to generate a QR code
Functions of QR code
1) scan the mobile device to "take away" and read it (that is, generate a QR code for the URL)
2) information can be transmitted (simply generating a string with a QR
Jquery automatically loads the text list through Ajax at the bottom of the page, similar to the lazy image loading effect, with loading effect
Scroll to the top of the page to load Rolling Test
View More >>>
/* Endlesspage. js */var gPageSize =
Recently used functions that feel useful for JS operation time (Continued ...)
// Judge whether the time is equal function compareDate (date1, date2) {// equal if (date1 = date2) {return true;} var startTime = date1; var start = new Date (startTime.
Three methods for clearing arrays in JavaScript
Method 1, splice
123
var ary = [1,2,3,4];ary.splice(0,ary.length);console.log(ary);// OutputArray [0], empty Array, cleared
Method 2. The value of length is 0.
This method is very
Javascript setTimeout (0), Closure
SetTimeout is often used to delay the execution of a function. Its usage is
SetTimeout (function (){
...
}, Timeout );
Sometimes setTimeout (function ..., 0); for example
Function f (){
... // Get ready
Node. js uses Log. io to monitor logs in the browser in real time (equivalent to the tail-f command), node. jslog. io
Today, took the time to browse the node. js, haha, read an entry of the article (http://www.nodebeginner.org/index-zh-cn.html),
Summary Node. js non-blocking IO and event loops, and node. js non-io
Learn and use Node. javascript has been writing a web application and a RESTful web api using express and mongoose for two months. js official website homepage for Node.
One night of tangle, about the Position attribute in CSS, cssposition
The usage of static and relative is clear and will not be discussed here. It is worth noting that static positioning is ignored by default, that is, top, bottom, left, right or
C # Cross-origin submission form using jsonp
Submit a message across domains and return whether the message is successful!
C # Server:
Public void FeedBackPost (string name, string email, string tel, string website, string desc, string thisIp,
Differences between jQuery prop and attrComparison between the two jquery methods is suitable for scenario defect prop parsing native propertyelement. property radio/checkbox select tag. If you need to read boolean and index, you cannot read Custom
Understanding javascript prototype and scope series (1) -- everything is an objectThe focus of "Everything is an object" is to understand the concept of "object. -- Of course, not all objects are objects, and the value type is not objects. First,
Solution for modifying the type attribute of input in ie8: ie8input
Abstract:
Now, you need to check the show plaintext check box to display the password entered by the user in plaintext, the first thought was to modify the type of the input box to
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