var list = we.storage.get(“list”) || [] 这什么意思呢,,得到数据再与?
当we.storage.get(“list”) 取到的不为空的时候 list 就会等于we.storage.get(“list”)
当we.storage.get(“list”) 取到的为空的时候 list 就会等于数组
一种保险措施
var list = we.storage.get(“list”) || [] 这什么意思呢,,得到数据再与?
当we.storage.get(“list”) 取到的不为空的时候 list 就会等于we.storage.get(“list”)
当we.storage.get(“list”) 取到的为空的时候 list 就会等于数组
一种保险措施