vue element-ui Component development greatly improves our efficiency , But sometimes it doesn't meet our needs , For example, time , The date of the component ;element-ui The date is returned in this format , Look at the picture below ：
But what we want is another format , Here's the picture ：
How to solve ？ You can use a plug-in moment.js solve ：
quote , I have a global reference here , And linked the method to vue above , Look at the picture below ：
Use , Look at the picture below ：
If it needs to be used in other tool classes, it needs to be introduced ：
import moment from 'moment'