Lit 也提供了两个指令,classMap 和styleMap,可以方便地在HTML 模板中条件式的应用class 和style。 import {LitElement, html, css} from 'lit'; ...
確定! 回上一頁