util-fun.wxs 353 B

1234567891011121314
  1. var filter = {
  2. getDatetime: function( item ){
  3. var strItem = item.toString();
  4. return strItem.substring(0, 10) + " " +strItem.substring(11, 19);;
  5. },
  6. getDate: function( item ){
  7. var strItem = item.toString()
  8. return strItem.substring(0, 10);
  9. },
  10. }
  11. module.exports = {
  12. getDatetime: filter.getDatetime,
  13. getStatus: filter.getStatus
  14. }