function time () {var date = new Date ();//Get system times var year = Date.getfullyear ();//Current A.D. var month = Date.getmonth ();//Current Month- 1, so the year shown later has +1var day = Date.getdate (); The current number of days, GetDay ()
4 ways to call functions in JS:① is called as a normal function, this value points to window, which, to be exact, is null and is interpreted as window. In the ECMASCRIPT5 standard, if this is null, it is interpreted as undefinedPopup: Hello②a.
///full-width space is 12288, half-width space is 32///other character half-width (33-126) and full-width (65281-65374) The corresponding relationship is: all difference 65248//half-width conversion to full-width function todbc (txtstring) {var tmp =
Shenzhen Cyber-Life Network marketing You can also become a teacher! Http://blog.chinaiiss.com/bzbxhpie website Construction IE browser no matter what version, always with the Web standard some is not very compatible. For code workers, nature is
/*Basic JavaScript Learning SummaryThis summary uses the DW to write, in order to debug conveniently, will affect the test part to write in the annotation form ****/All tests are shown with the alert () function1, JavaScript special characters//in
Recently, there is a question about interview in the group, the basic knowledge about global variables and local variables is examined:Fun Foo () {var a = b = 0;}Let's choose the values of a and B respectively, perhaps not carefully, we probably
The function of an instance is to add a picture to the HTML img tag.You can encode the image in base64. For examplesrc= "Data:image/gif;base64,myimagedataencodedinbase64= " alt=" My Image data in base "/>Here are a full example of what can
/*Basic JavaScript Learning SummaryThis summary uses the DW to write, in order to debug conveniently, will affect the test part to write in the annotation form ****/All tests are shown with the alert () function1, if conditional sentence function
Four algorithms to achieve this goal:
Array.prototype.unique1 = function () { var n = [];//A new temporary array for (var i = 0; i { //If the current array of I has been saved into a temporary array, then skip, //Otherwise push the
/*Basic JavaScript Learning SummaryThis summary uses the DW to write, in order to debug conveniently, will affect the test part to write in the annotation form ****///1, how to place JavaScript, can be implemented////2, the location of the
JQuery achieves the carousel Effect of imitation roadside lightbox advertisement images, jquery roadside
Special effects
This picture is like a lightbox advertisement on the side of the road, a large billboard effect on the side of the road, LED
JS learning notes 9_JSON1. JSON overview JavaScript Object Natation, js Object Notation (like XML) is a data format, which has the same syntax format as js P.S. A little bit of history: the father of JSON is Douglas, author of "the essence of
Use jQuery to change the default alert frame, jqueryalert
To change the frame, you must modify the built-in control winpop. The following is the specific code of winpop.
(Function (window, jQuery, undefined) {var HTMLS = {ovl: ' ' + ' '+' '+' '+'
ScrollTop in javascript: javascriptscrolltop
ScrollTop indicates the scroll height. By default, it is rolled down from position: 0. The offset of scrollTop (offset) indicates the offset relative to the top, in pixels. The height of scrollTop () can
Use Sublime to build the nodejs environment in Windows and sublimenodejs
1. Download nodejs, install OK, and configure environment variables.
2. Download sublime text3
3. add the node plug-in the package install package (or directly go to the
Clip-path attribute of CSS3, CSS3clip-path attribute
First, let's talk about the clip-path attribute. I have never seen this clip-path Attribute before. I searched the internet and found that clip-path originally meant "cut.Clip-path: polygon (x, y)
Js implements a method similar to Sina Weibo's homepage content for gradual display, and the homepage content for gradual display
The example in this article describes how js achieves a gradual effect similar to Sina Weibo's homepage content. Share
Javascript uses DOM operations to implement simple message boards, and jsdom operations on message boards
This article describes how JavaScript uses DOM operations to implement simple message boards. Share it with you for your reference. The
Js uses setTimeout to implement the time bomb Method
Today I am reading a blog post on the css exploration journey. I wrote a timer bomb using setTimeout, and I will write it as a cat.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
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