[英]How I can call ext.net button from Javascript and set to enable it?
[英]how can call javascript from c# ext.net
在我的项目中,当我在chrome中运行它时显示错误的时间。 探险家它显示真实。 所以我写这个js代码,但它仍然无法正常工作。 这是我的js;
var FormatTrxStartDate = function (value, record) { var processDate = new Date(value); return processDate.getDate() + "." + (processDate.getMonth() + 1) + "." + processDate.getFullYear() + " " + processDate.getHours() + ":" + processDate.getMinutes() + ":" + processDate.getSeconds(); };
这就是我使用它的地方;
<ext:ModelField Name="TrxStartDate" Type="String" >
<Convert Fn='FormatTrxStartDate' />
</ext:ModelField>
以不正确的日期格式传递参数值
使用processDate.getFullYear()==> processDate.getFullYear().toDateString()
日期数据转换为String
X.Js.Call("FormatTrxStartDate ",value,record);
请试试这段代码
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.