| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2055 人关注过本帖
标题:点击提交后,怎么自动获取录入时间啊?
只看楼主 加入收藏
文zzz
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2017-8-8
收藏
 问题点数:0 回复次数:1 
点击提交后,怎么自动获取录入时间啊?
图片附件: 游客没有浏览图片的权限,请 登录注册

<div region="center"  border="false" style="padding:5px;">
        <table id="datagridinfo"  class="easyui-datagrid" style="width:auto;height:350px"  
               data-options="url:'${basePath}runMonitor/datagrid'">
               <thead>
                  <tr>
                    <th data-options="field:'ck',width:20,checkbox:true"/>
                    <th data-options="field:'id',hidden:true">id</th>
                    <th data-options="field:'zhengshumingcheng',width:150">证书名称</th>
                    <th data-options="field:'yewuxitong',width:150">业务系统</th>
                    <th data-options="field:'hezuogongsi',width:150">合作公司</th>
                    <th data-options="field:'kaishishijian',width:165">开始时间</th>
                    <th data-options="field:'jieshushijian',width:165">结束时间</th>
                    <th data-options="field:'lurushijian',width:165">录入时间</th>
                    <th data-options="field:'cuenchulujing',width:150">存储路径</th>
                  </tr>
               </thead>
           </table>
       </div>
 <!-- 定义添加弹出框 -->
    <div id="dataWindow" class="easyui-window" title="添加数据"
        data-options="iconCls:'icon-save',modal:true,closed:true"
        style="width:400px;height:500px;padding:10px;display:none;">
        <form id="dataform" method="post">
        <div class="query-conditions ue-clear" >
            <label>证书名称:</label>
            <input id="addzhengshumingcheng" name="zhengshumingcheng" data-options="required:true,editable:true"  style="width:100%;margin-top:10px;height:30px" />
            
            <label>业务系统:</label>
            <select id="addyewuxitong" class="easyui-combobox" name="yewuxitong"
                        style="width:100%;margin-top:10px;height:30px" data-options="required:true,editable:false">
                        <option value=""></option>
                        <option value="IPTV">IPTV</option>
                        <option value="ESB">ESB</option>
                        <option value="清查APP">清查APP</option>
                        <option value="智能监控">智能监控</option>
                        <option value="沃网络">沃网络</option>
                        <option value="电子运维">电子运维</option>
                        <option value="客服支撑">客服支撑</option>
                </select>
            <label>合作公司:</label>
            <input id="addhezuogongsi" name="hezuogongsi"  style="width:100%;margin-top:10px;height:30px" />
            
            <label>开始时间:</label>
            <input id="addkaishishijian" name="kaishishijian" class="easyui-datetimebox" style="width:100%;margin-top:10px;height:30px" />
            
            <label>结束时间:</label>
            <input id="addjieshushijian" name="jieshushijian" class="easyui-datetimebox" style="width:100%;margin-top:10px;height:30px" />
            
            <label>存储路径:</label>
            <input id="addCuenchulujing" name="Cuenchulujing"  style="width:100%;margin-top:10px;height:30px" />
    </div>
</form>
      
搜索更多相关主题的帖子: 时间 style option field label 
2017-08-08 11:37
liujh13
Rank: 2
等 级:论坛游民
帖 子:16
专家分:20
注 册:2017-8-30
收藏
得分:0 
下面是我用的获取客户端的时间方法,不过建议在提交到服务器后 在后代获取时间(java 、语言 )new date

/**
 * @description 获取当期时间
 */
function getNowFormatDate() {
    var date = new Date();
    var seperator1 = "-";
    var seperator2 = ":";
    var month = date.getMonth() + 1; //月
    var strDate = date.getDate(); //日
    var strHour = date.getHours(); //时
    var strMinutes = date.getMinutes(); //分
    var strSeconds = date.getSeconds(); //秒

    if(month >= 1 && month <= 9) {
        month = "0" + month;
    }

    if(strDate >= 0 && strDate <= 9) {
        strDate = "0" + strDate;
    }

    if(strHour >= 0 && strHour <= 9) {
        strHour = "0" + strHour;
    }

    if(strMinutes >= 0 && strMinutes <= 9) {
        strMinutes = "0" + strMinutes;
    }

    if(strSeconds >= 0 && strSeconds <= 9) {
        strSeconds = "0" + strSeconds;
    }

    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate +
        " " + date.getHours() + seperator2 + strMinutes + seperator2 + strSeconds;
    return currentdate;
}
2017-08-30 15:20
快速回复:点击提交后,怎么自动获取录入时间啊?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016148 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved