I hope this article summarizes the content can give you crossing to bring a brand-fresh feeling. In addition, if you have any recommended JS skills, welcome to add in the comments, I can be stored in this article.Ajax requestsjquery Ajax functionsI
@WebService1, ServiceName: External service Name, specify the service name of the Web service: Wsdl:service. The default value is the simple name + Service of the Java class. String2. Endpointinterface: Full path of service interface, specifying the
jquery objects and Dom objects use instructions that need to be referenced by a friend.1.jQuery Objects and Dom objectsLearning jquery for the first time often distinguishes between jquery objects and Dom objects, so you need to focus on the jquery
1.clientWidth and ClientHeightRefers to the visible part width and height of the element, which is padding+contentIf there is no scroll bar, it is the width and height of the setIf there is a scroll bar, it is the width and height of the set minus
Append ()-inserts content at the end of the selected element
Prepend ()-Inserts content at the beginning of the selected element
After ()-Inserts the content after the selected element
Before ()-insert content before selected element
$
First, the script differences:1, event binding: AddEventListener and Attachevent event handler in this point is different, ie point to Window2, Get Event object: Event handler function Window.event 3, get the DOM element that triggers the event:
Input[type=file] This thing is placed directly on the page. Big Ugly! , directly using CSS to change the style of this input, it will be the button and the following text at the same time action. Because they are a whole.So, we need to set the
Since very few previous front-end code (haha, unqualified programmers AH), the recent project using JSON as a means of interaction between systems, natural accompanied with many Ajax requests, followed by the problem is to solve the cross-domain
One, variable1. Do not declare variable types when declaring variables. All use the var keyword;var a;a=3;2, a row can declare multiple variables. And can be of different typesvar name= "Yuan", age=20, job= "lecturer";3 . You can declare variables
Status-code-1xx:informational-request received, continuing process-2xx:success-the action was successfully received, Unde Rstood, and Accepted-3xx:redirection-further action must be taken on order to complete the request-4xx:client
I. Upload the image using Kindeditor, and return the corresponding data according to the Kindeditor request, but the Kindeditor plugin shows that the upload failed!!!Workaround: Each version location may be different!!!1. Modify Error!==0 ===>error!=
Make your own navigation bar.
HTML Header elements:
defines the default link address for page link labels
defines the style of the HTML document
defines a relationship between a document and an external resource
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