The use of JS naming specification, reference specification, the use of unified coding standards to write code can improve the readability of JS code, conducive to later maintenance and expansion, conducive to team development.Reference
1. Custom method:2. Manually trigger the OnChange method with JSWhen the input box is assigned a value by JS, the onchange method of the input box is not triggered by default, which can be triggered manually with JS.Common JS Summary (supplement: 201
. HTML (),. Text (),. Val () Three methods are used to read the contents of the selected element;. HTML () is the HTML content used to read the elements (including their HTML tags);. Text () is used to read the plain text content of an element,
The PHP language defaults to Greenwich Mean time, and you have to modify the time zone settings in the PHP language to get local times.There are two ways to modify the time zone setting
Modifying a configuration file php.ini
[Date]Date.
After a site is established, if you do not pay attention to security problems, it is easy to be attacked, the following discussion of several vulnerabilities and ways to prevent attacks.I. Cross-site scripting attacks (XSS)Cross-site scripting
Repeater:HeaderTemplate-Execute again at load startItemTemplate-How many data are executed and how many timesFooterTemplate-executed at the end of the loadAlternatingItemTemplate-Alternating Item template UserName PsssWord NickName Sex Nation
Whisper: Follow this step and you'll see what JSONP is.1. Project Catalogue:
ng-mywork demo.html test.jsServer Configuration for 2.nginx
Server {Listen the; server_name scan_80; Root E:/ng-mywork/ the;
Sometimes upload pictures because the picture is too large, not only occupy space, consumption of traffic, but also affect the size of the image (the size of the picture varies). Here's a way to share a proportional, non-distorted image, so that no
index.html css3/jquery custom pop-ups multiple pop-up animations This is a custom pop-up window implemented with jquery and CSS3, which is much prettier than the browser's default pop-up window . Customizable HTML in a pop-up window, very
Summary: (function () {}) (); and (function () {} ());2 of the syntax in JavaScript is related to the function keyword:functions Definition: function functionname (formalparameterlist) {functionbody}functions expression: function [functionname]
*screen.widthFunction: The width of the screen in which the browser is displayed is declared, in pixels.Syntax:screen.width*screen.heightFunction: The available width of the screen that shows the browser is declared, measured in pixels.Syntax:screen.
1.substrSUBSTR (Start,length) is a string that starts at the start position and intercepts length lengths.var src= "Images/off_1.png";Alert (SRC.SUBSTR (7,3));The popup value is: Off2.substringSUBSTRING (start,end) represents a string from start to
PHP provides two ways to interact with Web pages
Submit data through a Web Form
Passing through URL parameters
Let's start with the following interaction with a Web page through a formForms are submitted in two types of post get,
A name can correspond to multiple controls at the same time, such as checkbox and radioAnd the ID must be the only one in the full-text filePurpose of the ID1) ID is the identity of the HTML element, mainly in the client script.2) The label is
Many years of working with ASP, such as Microsoft's excellent framework today, Microsoft in the MVC-based Thinking framework, also launched its own set of ASP. NET MVC framework, if you personally experienced it, you can not help saying ' beautiful '
1.nginx supports FLV and MP4 format playbackDefault Yum installation NginxCENTOS7 installation of Nginx should be the default installation of the Nginx_mod_h264_streaming module# nginx-v See if the Nginx_mod_h264_streaming module is installedNginx
var result= ""; $.ajax ({ "post", ".. /reportrule/main.do?method=selectreporttoadd ", data:{}, function(msg) { = msg; alert (result); \ \ have data }}); Alert (result)\ \ No data Reason:Ajax is an asynchronous request,
HTTP protocol DetailedAuthor:jeffreyIntroductionHTTP is an object-oriented protocol belonging to the application layer, which is suitable for distributed hypermedia information System because of its simple and fast way. It was proposed in 1990,
1. Package CompilationPackage compilation installation: (requires gcc, make Tools)Recommended installation package Group: development toolsApplication-version-release.src.rpm–> after installation, makeUse the Rpmbuild command to make the RPM package
ControlCalendar: calendaring control but HTML code is too big to fitfileupdate: File UploadHiddenField: Hidden fieldsimage: images can be written directly to URLs that are not available for HTML codetable: Table Not applicableVerify that the class
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