摘要: The basic interpolatefunction we can create: function interpolate(str, params) { let names = Object.keys(params); // ["title", "description"] let valu 阅读全文
posted @ 2024-08-20 14:49 Zhentiw 阅读(11) 评论(0) 推荐(0) 编辑
摘要: /* View Transitions */ /* STEP 1 */ ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 1s; } /* STEP 2 */ @keyframes fade- 阅读全文
posted @ 2024-08-20 14:29 Zhentiw 阅读(17) 评论(0) 推荐(0) 编辑
摘要: Let's say we have a web component: import { getProductById } from "../services/Menu.js"; import { addToCart } from "../services/Order.js"; export defa 阅读全文
posted @ 2024-08-20 14:23 Zhentiw 阅读(3) 评论(0) 推荐(0) 编辑