如何在JavaScript中将long转换为int?
此HTML文件计算当前日期和选定日期之间的天数差,只要该日期晚于今天。
代码如下:
<!DOCTYPE html>
<html>
<head>
<title>Calcolo distanza</title>
</head>
<body onload="myFunction()">
<p> Data corrente </p>
<button type="button" id="myBtn"></button>
<p> Scegli la...