项目作者: zhoukekestar
项目描述 :
ESM Demos
高级语言: HTML
项目地址: git://github.com/zhoukekestar/esm-demos.git
ESM Demos
Hello ESM
<script type="module">
import moment from 'https://cdn.pika.dev/moment@^2.26.0';
document.querySelector('p').innerHTML = `This date is formated by moment: ${
moment().format('YYYY-MM-DD HH:mm:ss')
}`;
</script>