<script> function format(f) { return f.getFullYear() + '-' + (f.getMonth() + 1) + '-' + f.getDate(); } function loadfn(){ alert(format(new Date())); } </script>
<script> function format(f) { return f.getFullYear() + '-' + (f.getMonth() + 1) + '-' + f.getDate(); } function loadfn(){ alert(format(new Date())); } </script>
需求:爲了提高安全性.某人擁有某個證書,才能進行登錄.環境:Tomcat設計:採用SSL,https登錄.服務器驗證證書.(貌似SSL裏面自己做了驗證