方案一:var val = JSON.parse(item.value);

分析:使用boolean()函数,转换不成功,使用JSON.parse解决