浏览器
html
<script src="path/to/dayjs/dayjs.min.js"></script>
<script>
dayjs().format();
</script>
CDN 资源
html
<!-- CDN 示例 (jsDelivr) -->
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
<script>
dayjs().format();
</script>
请参阅 本地化文件 (locale) 和 插件 (plugin) 的加载说明,获取更多信息。