Develop cross-browser JavaScript1. Differences between childNodes and ie in ff.Node (nodeType = 1) in ff are separated by textNode (nodeType = 3), whereas ie/op is not. content In ff, there are three childNodes in box1 and one in ie.2. Set the
How to dynamically create a link label to the head in JavaScript, linkhead
The example in this article describes how to dynamically create a link tag to the head using JavaScript. Share it with you for your reference. The specific analysis is as
PDO Common methods: Pdo::query () is primarily used for operations (pdostatement) that have logged results returned, especially for select operations. Pdo::exec () is primarily for operations returned without a result set. such as Insert,update and
such as setting the Class property
Copy Code code as follows:
El.setattribute (' class ', ' abc ');
The style "ABC" in IE6/7 will not work, although using El.getattribute (' class ') can fetch the value "ABC".
Also as for
object.setAttribute(sName, vValue [, iFlags])
Parameters:
Sname Required.StringType, attribute name
Vvalue Required. The variable specified for the attribute. It can be string, number, or boolean type.
Iflags Optional. The two types specified
Copy Code code as follows:
var asubmit = document.getElementById ("submit");
Copy Code code as follows:
asubmit.setattribute ("onclick", "alert (' Please check mobile number ');" Valid in Firefox, but not valid in IE
-----------------20150123 XML Extensible Markup Language--------------------------------------XML Extensible Markup LanguageXML: Storing dataAttention:The XML is strictly case-sensitive.XML tags also appear in pairs.XML documents have only one root
Today, let's take a look at the implicit image and MVC design patterns for JSP applications.
First, let's start with the implicit object of JSP: The JSP implicit object is an instance of a set of classes loaded by the Web container. It is an object
Dom operation in JS can be said to be very common, a lot of web pages of the implementation of small functions, such as the deletion of some elements and other operations can be achieved with JS. So what do we need to know in the DOM to accomplish
1, the use of the scene
The user prints a small ticket automatically after doing something in the browser.
2, test methods
2.1 JavaScript implementation
Tried a lot of ways, eventually will appear a pop-up box, let the user select the printer.
For now, implementing the "Database Abstraction Layer" is a great way to go, and using a database access abstraction layer like PDO is a good choice.
The PDO contains three predefined classes
The PDO contains three predefined classes, which are PDO,
CSS multi-browser compatibility issues and solutions
First, Document.formName.item ("itemname") problem
Problem description: Under IE, you can use Document.formName.item ("ItemName") or document.formName.elements ["ElementName"];firefox, You can
Example 1
The code is as follows
Copy Code
var myForm = document.createelement ("form");Myform.method= "Get";Myform.action = "line_ticket.aspx";var myinput = document.createelement ("input");Myinput.setattribute ("name",
JSP Four scopes:Page: The current page, that is, just jump to another page will not be validRequest: A conversation, simple understanding is a request within the scope of the effectiveSession: Browser process, as long as the current page is not
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.