Like any other attribute, you can specify classes with a JavaScript attribute, seen here: <button class={current === 'foo' ? 'selected' : ''} on:click={() ...
確定! 回上一頁