问题 In a Svelte app, I have this array of countries: let countries = [ { name:"Alegeria", status: "1" }, { name:"Bulgaria", status :"0" } ] Note the status property is a string. I iterate the array this way: {#if countries.length > 0} <table class="table"> <thead> <tr> <th>Country</th> <th class="text-right">Status</th> </tr> </thead> <tbody> {#each countries as c} <tr> <td>{c.name}</td> <td class="text-right"><Switch bind:checked={Boolean(Number(c.status))} /></td> </tr> {/each} </tbody> </table