为什么answer=true可以answer==true就运行不了
function c(){
var answer=confirm("是否取消设置?");
if(answer=true){
txt.removeAttribute('style');
// txt.style.color="";
// txt.style.backgroundColor="";
// txt.style.width="";
// txt.style.height="";
// txt.style.display="";
}
}