如果“ wallSize”在localStorage中,则将结果存储在bathroomLength变量中。否则,请勿更改bathroomLength。var bathroomLength = 'initial'; 回答这个问题的正确方法是什么? 最佳答案 if (localStorage.wallSize) bathroomLength = localStorage.wallSize;