Pop up a new page to calculate age using js and get the value passed by php
巴扎黑
Release: 2023-03-01 09:32:01
Original
1178 people have browsed it
//Accept the value passed by php in js
var tt = ; function ages(str)
{
var r = str.match(/^(d{1,4})(-|/)(d{1,2})2(d{1,2})$ /); if(r==null)return false; var d= new Date(r[1], r[3]-1, r[4]); if (d.getFullYear () ==r[1]&&(d.getMonth()+1)==r[3]&&d.getDate()==r[4]) var Y = new Date().getFullYear() ; function getUrl(url,target) {
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn