公告板
版本库
filestore
活动
搜索
登录
main
/
OlyMEBGProduct
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
Merge branch 'master' of http://47.92.229.245:8089/r/OlyMEBGProduct
游畅
2022-04-24
22b55a2ccc10820dcb0338f560f78bde7b43a95d
[OlyMEBGProduct.git]
/
force-app
/
main
/
default
/
aura
/
FormattedDate
/
FormattedDateController.js
1
2
3
4
5
6
7
({
valueChangeHandler : function(component) {
var value = component.get("v.value");
var formattedValue = new Date(value).toLocaleString('en-US', {month: 'short', year: 'numeric', day: 'numeric'});
component.set("v.formattedValue", formattedValue);
}
})