JS method of obtaining year, month, day, hour, minute, and second. This article analyzes how JS method of obtaining year, month, day, hour, minute, and second. We will share this with you for your reference. The details are as follows:
Var d = new Date (); var time = d. getFullYear () + "-" + (d. getMonth () + 1) + "-" + d. getDate () + "" + d. getHours () + ":" + d. getMinutes () + ":" + d. getSeconds ();
It must be so complicated that there is no way.
I thought jQuery would be able to streamline its functions, but I didn't find it.
You can only use this original method to obtain the information of year, month, day, hour, minute, and second.
Tips:
Javascript cannot contain spaces when passing parameters. Otherwise, no data can be obtained.
Url = "send. php? Action = record_info & order_id = "+ $ (" # order_id "). val () +" & remark = "+ $ ('# remark'). val ();
There are spaces before and after the equal sign after the preceding remark parameter, resulting in no data being obtained.
Correct syntax:
Url = "send. php? Action = record_info & order_id = "+ $ (" # order_id "). val () +" & remark = "+ $ ('# remark'). val ();