<nobr id="wwsse"></nobr>

      <acronym id="wwsse"><ruby id="wwsse"><address id="wwsse"></address></ruby></acronym>

        <acronym id="wwsse"><ruby id="wwsse"></ruby></acronym>

      1.  2209916044

        Dedecms織夢自定義表單顯示提交時間

        時間:2017/8/29 8:31:12來源:夢網瀏覽:

        織夢dedecms自定義表單顯示提交時間的方法


        1、添加自定義字段:提交時間-->tijiaoshijian

        2、在模版< form>< /form>中添加如下代碼即可

        < input name="tijiaoshijian" value="" type="hidden"  id="tijiaoshijian"  />

        < script type="text/javascript">

        window.onload = function(){

            var nowDate = new Date();

            var str = nowDate.getFullYear()+"-"+(nowDate.getMonth() + 1)+"-"+nowDate.getDate()+" "+nowDate.getHours()+":"+nowDate.getMinutes()+":"+nowDate.getSeconds();

            document.getElementById("tijiaoshijian").value=str;

        }

        < /script>


        贵州十一选五