import moment from '@salesforce/resourceUrl/XXX';
import { loadScript } from 'lightning/platformResourceLoader';
export default class ProjectActivity extends LightningElement {
connectedCallback(){
Promise.all([
loadScript(this, moment + '/js/moment.js')
]);
this.loadActivities();
}
loadActivities(){
let eventStartDate = moment(new Date()).format('YYYY-MM-DD');
}
}
问问题
1425 次