Recently, I made a flash sale for a real estate. The e-commerce website for group purchases (there are also flash sales in the House) has a countdown to flash sales, it mainly determines how long the current time is from the start of the second kill, and displays the start and end of the second kill. The most important one is... SyntaxHighlighter. all ();
Recently, I made a flash sale for a real estate. The e-commerce website for group purchases (there are also flash sales in the House) has a countdown to flash sales, it mainly determines how long the current time is from the start of the second kill, and displays the start and end of the second kill. The most important point is that the current time cannot be obtained by the browser through the new Date () Client time, so that as long as the user modifies his machine time, the countdown will be messy, therefore, the current time must use the server time, so the static cache page is used. Therefore, the current time is obtained using ajax.