In angular, sometimes we need to read the data from a file and now describe the steps to read the data from a JSON file:First, there is a JSON file, named Data.json:{ "name": "Li Bai" ,"surname": "Male", "age":Second, put it into the assets:
1. $GLOBALS-Referencing all variables available in the global scope2.$_server-saving information about the header, path, and location of the script
$_server[' Php_self ']
Returns the file name of the current execution script.
The reason is that the HTML interface associated with the JS file may dynamically modify the DOM structure, so that the browser completed the dynamic modification of the DOM, the browser to see the structure of the DOM, and the background caught in
Admittedly this is a seven-day crash course, and even with this effect, I'm not willing to accept the name. Well.This path is divided into two pieces:
Introduction to Practice
Theoretical extension
With the knowledge and project
1.http Status Code200 this is nothing to say, it is the representative request has been processed successfully302 on behalf of temporary redirection400 400 indicates that there is a syntax error in the request message. Need to be modified and sent
In the small program, there are more complex data to be sent to the background processing, the general will be used string concatenation, and then in the background interface in the analysis can be easily processed by the data type;The test found
1.CookiesThis is probably the most common and most used technology, but also the more ancient technology. Cookies have many advantages and are very convenient to use.But it also has a lot of drawbacks:such as cross-domain access problems, unable to
First, the definition of the module1. In node. js, all functions are divided into modules, and a complete module loading mechanism is provided, in which case we can divide the application into various parts.2, in the narrow sense , each JavaScript
jquery example 1_ placeholder useRequirements: Click on the first button to automatically check if there is a button is not selected, if there is a prompt error message. 1 2 3 4jquery Example 2_ analog red envelopes (excerpt from the
One, overviewJavaScript Advanced Programming: Event Delegation is the use of event bubbling, specifying only one event handler, you can manage all events of a certain type.To take an online bull talk about the event commissioned by the example: to
title This way can be compatible with Google and can be strong on the IE CSS allows text to be absolutely centered inside the element!!! "IE and Google"
Next here only to say that the Web project packaging, I believe most are used Web projects, about packaging war, really very headache, online said to try a good time can not.Later understand, really very simple well, share to everyone do not more
$ ("#btn"). Unbind ("click");//Make BTN This element's Click event Invalid$ ("#btn"). Unbind ();//Make all events of BTN this element invalid$ ("ul. Select"). Siblings (). Removeclass ("select");One of the Li's class properties under UL =select, all
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