Recently wrote a red envelope rain small function, but feel their JS there are many places can improve, hope that the gods can help pointing twos

JS section1' Use strict ';2 functionRedenvelope (options) {3 if( This===window) {4 return Newredenvelope (options);5 }6 varDefaults = {7Imgwidth:60,//the width of the red envelope8Position: ' Absolute ',9IMGENVSRC: '.

PHP pseudo-static configuration

ord

Configuring virtual hosts and pseudo-static1. Open the Apache rewrite moduleLoadModule Rewrite_module modules/mod_rewrite.so2. Turn on the virtual host feature# Virtual HostsInclude conf/extra/httpd-vhosts.conf3. Modify the

"Reprint" PHP VC6, VC9, TS, NTS version of the differences and usage of the detailed

vc9

1. The difference between VC6 and VC9:The VC6 version is compiled with the visual Studio 6 compiler, and if your PHP is built with Apache, you choose the VC6 version.The VC9 version is compiled with the visual Studio 2008 compiler, and if your PHP

How does PHP get the MAC address?

How to get MAC address with PHP? Everyone knows that MAC address is a computer in the world's unique identity, so this is very useful, for example, to do a polling function, that MAC address is essential, if the simple IP address to judge this is

Ubuntu Server builds its own personal blogs and other websites

vps

One, install Apache2 serversudo apt-get Install Apache2Second, install the MySQL serversudo apt-get Install Mysql-serverYou will be prompted to enter the password for the MySQL server at your own discretion.Three, install php5 ubuntu14.04 | | PHP7

Write a function that removes the file extension from a standard URL as efficiently as possible

For example: http://www.sina.com.cn/abc/de/fg.php?id=1 need to remove PHP or. phpfunctionGetext ($url){$arr=Parse_url($url);//var_dump get Array (4) {["scheme"]=> string (4) "http" ["Host"]=> string "www.sina.com.cn" ["Path"]= > string "/ABC/DE/FG//.

How to set up the connection ftp in Webstorm/phpstorm, and quickly file comparison, upload download, synchronization and other operations

Phpstorm In addition to directly open the localhost file, you can also connect FTP, in addition to complete the normal data transfer tasks, but also to the local file and server-side file comparison, the same file automatically match the directory

Configure Eclipse to write automatic prompts for html/js/css/jsp pages.

We usually use Eclipse to develop JSP page Smart hints effect is not ideal, today took two hours to discover eclipse can also be like Visual Studio 2008, the full intelligent hint Html/js/css code, using the eclipse comes with the plug-in, There is

node. js file path and environment issues

node. JS is installed at the root directory provided at the time of installationNPM installed global package under User/user name/appdata/roaming/npm/node-modulesNPM installed local files at the command line root directoryThere are two ways to

The animation of CSS animation effect

Y (^o^) yCSS animation Big strum of the animation.OverviewWhat is animation ? Before you answer this question, explain what is called a @keyframe(keyframe). @keyframe is an animated template. In which, you can use percentages, such as any value from

Simple File Upload in struts2

2016-08-31First, File upload Using Commons-fileupload-1.2.1.jar to achieve a simple upload file, first fill out the form on the page, remember to add enctype= "Multipart/form-data", mainly to ensure the correct encoding of the uploaded file,

HTTP 413 WCF

There are a variety of solutions found on the Internet for 413, see specific projects to find the corresponding solutionIf WCF returns 413, regardless of serverruntime, just set the maximum receive value in the binding, bindingname=

thinkphp5.0 Portal File

Thinkphp uses a single entry mode for project deployment and access, and regardless of what functionality is completed, an application has a unified (but not necessarily unique) portal.It should be said that all applications start with a portal file,

A detailed description of the usage of $timeout and $interval in Angularjs

1. First inject $interval, $timeout, as parameters into the controller, such as Rds.controller (' Controllerctrl ', [' app ', ' $scope ', ' $http ', ' $ Routeparams ', ' $filter ', ' $location ', ' $interval ', ' $timeout ', function (app, $scope,

Shellcode to bounce links using netcat

from:http://morgawr.github.io/hacking/2014/03/29/shellcode-to-reverse-bind-with-netcat/ This article is mainly about how to construct a shellcode when the remote overflow, in order to form an effective rebound link.0x00 Reverse

Eclipse uploads items to git

Git is a good code hosting platform, just recently contacted, by the way make a note.The process by which Eclipse uploads a project to Git is as follows:1, in the high version of Eclipse has installed Git plug-ins, if not the installation of their

PHP Gets the current time function

Method One Date function echo date (' y-m-d h:i:s ', time ()); 2016-09-1 10:00:08Method two time function $time = time (); Echo Date ("y-m-d", $time)//2016-09-1 Method Three $_server[' Server_time '] method four

Angularjs 3 ways to set global variables

There are two kinds of Angularjs itself, the method of setting global variables, and the method of setting global variables with js, there are altogether three KINDS. The function to be implemented is that the global variables defined in the Ng-app

CSS default property values for HTML tags

HTML tag CSS default property values DaquanIf the *{margin:0;padding:0 is set, the HTML default CSS value needs to be restored when the margin is Used.In addition to the definition of inline and block, it is important to note the default styles

Iscroll.js Usage Reference (share)

Iscroll.js Usage Reference (share)Sharing is the best way to spread and learn knowledgeThe following article is Iscroll.js official website of the Chinese translation, although their English is not good, but I think the original author of the

Total Pages: 10629 1 .... 3651 3652 3653 3654 3655 .... 10629 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.