jQuery now() methodThe now() method in jQuery returns a number that represents the current time. This method returns the number of milliseconds from midnight of January 1, 1970 to the current time. The now() method returns a number representing the number of milliseconds. SyntaxIt does not accept any parameters. ExampleIn this example, we are using the now() method to display the number of milliseconds from midnight of Jan 1, 1970 to the current time. Test it NowOutput After the execution of the above code, the output will be - On clicking the given button, an alert box will be displayed showing the number of milliseconds as shown in the following screenshot. Next TopicjQuery parseJSON() method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India