你需要
if (sect == true) { // compares sect with true and checks the result代替
if (sect = true) {// sets sect to true and then checks it甚至 更好的 办法是使用
if (sect) { // checks sect
你需要
if (sect == true) { // compares sect with true and checks the result代替
if (sect = true) {// sets sect to true and then checks it甚至 更好的 办法是使用
if (sect) { // checks sect