The date built-in function in JS

Source: Internet
Author: User

with JS in the date built-in function implementation on the page display: "Today is: September 26, 2013 14:32:45".

var date=new date (Date.parse (' 9/26/2013 14:32:45 '));

Write Three ways to declare objects in JS.

Var obj={

Name: Names,

Say:function () {

Alert ('sssss');

}

}

Var obj=new Object ();

Var obj={}

obj.name= ' name ' ;

Obj.say=function () {

Alert ('sssss');

}

Write Three ways to define functions in JS.

Function AA () {

function body

}

Aa ()

Var aa=function () {

function body

}

Var fun=new function (' A ', ' B ');

Alert (fun);

What are the functions and methods of 1.php and JS for calculating arrays, string lengths, respectively?

PHP Compute Array Count Stlren

Js Arr.length Str.length

2. List JavaScript inline objects at least 5?

String Boolean Math Array Global

3. describe the variable scoping rules for JavaScript?

using var to declare inside a function is a local variable, declared outside the function is a global variable

4. output is mozilla/4.0 (compatible; MSIE5.01; WindowNT5.0), the possible output statements are: b

a.$_server[' Http_user_agent_type '];

b.$_server[' Http_user_agent '];

c.$_server[' User_agent '];

d.$_server[' AGENT '];

5. The following function PHP is not possible: D

A. Server-side script run

B. Command-line scripting run

C. Client-side graphical interface (GUI) programs

D. Browser-Side execution of DOM operations

6. What is the execution result of the following code? C

<?php

echo 1+2+ "3+4+5";

?>

a.0

B.3

C.6

D. " 33+4+5 ";

7.php function name is case-sensitive? A

A, do not distinguish

B, distinguish

8. Execute the following code, and the output is B

<?php

Abstract class a{

Function __construct () {

Echo "a";

}

}

$a =new A ();

?>

A, a

B, an error warning

C, a fatal error

What does the 9.array_shift (b) function do?

A add a new element to the array

B move an element in the divisor group

C Exchange an array of key and value

D clears an array

10. The properties of the class can be serialized and saved to the session so that the entire class can be restored later, and the function to be used is ____serialize unserialize.

please write down 5 common SQL operation keywords

Where limit order by has insert into

Please list 5 common PHP functions for MySQL operation

mysql_query () Mysql_dbname () mysql_num_rows ()

MYSQL_FETCH_ASSOC () Mysql_set_charset ()

please write down the meaning of the following MySQL data type expression.

Int (10) Integral type

char (16) character-type storage

varchar (16) storage of string lengths

DateTime Date-time storage

Text Storage

please write down the 5 common LUnix operation commands.

U undo yy Copy dd Delete single line x Delete first letter Find Search command

15.Linux compressed file and decompression File command

. Tar.-ZCVF

. tag-zxvf

The date built-in function in JS

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.