Bagaimana untuk mencipta Set()以数组形式的string存到localStorage?
Set()
string
localStorage
let a = new Set([1,2,3]); let b = Array.from(a); localStorage.setItem("somename",JSON.stringify(b))