織夢dedecms自定義表單顯示提交時間的方法,DEDE技
導讀:DEDE技術DEDE技術1、添加自定義字段:提交時間-- tijiaoshijian 2、在模版form/form中添加如下代碼即可 input name= tijiaoshijian織夢模板dede模板免費。
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("dede后臺模板tijiao織夢模板網(wǎng)站shijian").value=str;
}
</script>相關織夢模板dede模板免費。
聲明: 本文由我的SEOUC技術文章主頁發(fā)布于:2023-07-18 ,文章織夢dedecms自定義表單顯示提交時間的方法,DEDE技主要講述自定義,表單,織夢網(wǎng)站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_29321.html