您的位置:首页 > 其它

axure 中显示日期的字符串连接方法

2015-12-25 12:07 246 查看
[[Now.getFullYear().concat('年').concat((0.concat(Now.getMonth())).substr((0.concat(Now.getMonth())).length-2,2).concat('月')).concat((0.concat(Now.getDate())).substr((0.concat(Now.getDate())).length-2,2).concat('日 ')).concat((0.concat(Now.getHours())).substr((0.concat(Now.getHours())).length-2,2).concat(':')).concat((0.concat(Now.getMinutes())).substr((0.concat(Now.getMinutes())).length-2,2).concat(':')).concat((0.concat(Now.getSeconds())).substr((0.concat(Now.getSeconds())).length-2,2))]]

设置文本值为这个字符串就能够显示如下日期

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息