1. Edit the virtual host configuration fileVim/usr/local/apache2/conf/extra/httpd-vhosts.conf2. Add the following modulesAdd the following modules under "now plus 0 min" In this line ExpiresDefaultSetenvifnocase Referer "^http://.*\.test\.com" Local_
Set the maximum width of the picture with JSfunction Setimgsmaxwidth () {$ ('. answerimg img '). each (function () {$ (this) [0].onload = function () {var maxWidth = 1100; Max width of picturevar ratio = 0; Zoom ratiovar width = $ (this). width ();
Why is it important to differentiate between RHS and LHS?Because the variable is not declared (in the case where the variable is not found in any scope), the behavior of the two queries is different.function foo (a) {Console.log (A + B);return a + B;
1. StartDepending on the path, different JSP addresses are called--Wrap the behavior in a different action, and test calls each action,if. else is not resolved. -Write the change action and the JSP that needs to jump into the XML file--configuration
This series of articles is actually the translation of official website documents and the understanding in the process of their own practice. Along with the evolution of websites to web apps, there are three obvious phenomena:
There are
DIV structure:class= "container">class= " Left ">div>class=" Right ">div>div>Css:. Container{width:960px;Height:100%;Overflow:Hidden;margin:0 Auto;}. Left{Height:100%;width:200px;Overflow:Hidden;Padding-bottom:9999px;Margin-bottom:-9999px;float:
First: Landing page of the form page login.php login User name: Password: Second: code that submits and processes the contents of the form loginchuli.php//Start sessioninclude (".. /dbda.class.php "); $db =new Dbda (); $uid =$_post["
We know that the interaction between JavaScript and HTML is done through user actions and browser-generated events, such as when browsing for money to load an HTML document or a user clicking a button generates an event, although these interactions
Upload file Main Page file upload file upload File Processing pageif (!$_files["WJ" ["Error"]) {2. Limit the type of file to upload, the size of the fileif ($_files["WJ" ["Type"]== "Image/png" | | $_files["WJ" ["Type"]== "Image/jpeg")
I am not with the web, never want to learn HTTP, and now run to learn HTTP, is forced helpless.1. HTTP request methodGet request gets the resource identified by the Request-uriPost appends new data to the resource identified by Request-uri (not
MVC in the 1.jsp&servletThe key to MVC is the separation of business logic from the presentation. By placing the business logic in a "model", the business logic itself can exist as a reusable Java class.In Jsp&servlet, the servlet acts as the
1. Type conversion: It is divided into automatic conversion and casting, which is generally used for casting.Other types are converted to integers:parseInt();Convert other types to decimals:parseFloat();Determine if it is a valid number type:isNaN()
$interval$interval is an encapsulation of the native setInterval , which automatically executes ' $apply ' after each method callThe API is this:
1
$interval (FN, delay, [count], [invokeapply], [Pass]);
FN is the
JavaScript has a very important function, which is event-driven. When the page is fully loaded, the user triggers the element of the bound event in the page by the mouse or keyboard. JQuery is more efficient at writing event behavior for developers,
(for your own use only, do not spray)Idle bored, try to seajs, just in the company project casually added and tested a bit, do the next record, easy to use later on their own faster:
Download the latest sea.js, v-3.0.0
New
Write code when encountered the need to the absolute layout of the div to drag and drop, at first in order to save money directly on the online BA LA, see the Great god Zhang Xin Xu's an article "JavaScript to achieve the simplest drag effect ",
HTTPS is essentially a protocol for secure information Communication. From the point of view of the final data parsing, there is no intrinsic difference between HTTPS and HTTP. For the receiving end, the SSL/TSL will decrypt the received packets and
1.A carriage return toggle effect in JavaScript takes advantage of the () property of the event Object.A.tab B.keycode C.keycode D.keydownParsing: Implementing a carriage return toggle effect is the KeyCode Property. So select B.2.A.onfocus B.onblur
Reference http://blog.oldboyedu.com/nginx-https/Nginx HTTPS protocol requires the support of the SSL module, we use the –with-http_ssl_module parameter to add the SSL module when compiling nginx. Also need the server private key, the server
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