2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > ExtJS 前端日期数据传递到后台:数据格式转化

ExtJS 前端日期数据传递到后台:数据格式转化

时间:2024-07-07 17:49:05

相关推荐

ExtJS 前端日期数据传递到后台:数据格式转化

web前端|js教程

EXTJS 4.2,日期格式

web前端-js教程

下图例,

淘宝客源码那个好,vscode 禁用npm,ubuntu下开发php,tomcat 8009改,asp EF sqlite,jquery 图片裁切插件,web前端中的框架,爬虫中path,php的变量的定义,新闻源 seo,wap个人网站源码下载,轻博客博客 网页代码,商品网站模板代码,html页面的切换动画,简单图书管理系统,小程序拼团的模版通知lzw

css网站模板源码,vscode设置恢复默认,ubuntu 录音软件,tomcat各组件作用,爬虫 fetcher,php class参数,惠州seo扣费系统,企业网站免费下载,京东官网网站模板下载不了lzw

ExtJS 代码:

cf论坛源码,vscode中写emmet,ubuntu 提升性能,怎么更改tomcat首页,爬虫sql语句,php 时间转换函数,标准的seo文章快速推广,更新视频网站源码,app ui模板lzw

var tb1 = Ext.create(Ext.toolbar.Toolbar, { region: orth, border: 0 0 0, height: 34 }); tb1.add( { xtype: datefield, id: heDate, editable: false, labelWidth: 65, labelAlign: ight, fieldLabel: 日期, width: 180, format: Y-m-d, listeners: {render: function (ee) { ee.setValue(Ext.Date.parse(Ext.Date.format(new Date(), Y-m) + "-01", Y-m-d));} } }, { xtype: checkbox, id: isWholeMonth, hideLabels: true, boxLabel: 全月, checked: false, listeners: {change: function (cb, newValue, oldValue, obj) { var theMonth = Ext.getCmp("theDate"); theMonth.setDisabled(newValue);} } },->, { xtype: splitbutton, text: 查询, width: 70, handler: function () {btnOKClick(); }, menu: [{icon: ../Public/Images/excel.jpg,text: 导出到Excel,handler: function () { ExportToExcel();}} ] }, , );

将前端日期数据传递到后台:

var timeBegin = Ext.getCmp( heDate).getValue();var check = Ext.getCmp(isWholeMonth).getValue();Ext.Ajax.request({ url: "EquipmentEnergyInfo.aspx?method=GetOneEquipmentParam", method: POST, params: { ariId: theId, typeAriId: tootSelected, timeBegin: Ext.Date.format(timeBegin, Y-m-d), check: check, } });

后端接受:

string time = Request["timeBegin"];

相关文章:

英文日期格式 数据库的日期格式转换

JS 字符串转日期格式 日期格式化字符串

相关视频:

前端开发规范手册

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。