var a=document.getElementById("txt1").value;
var b=document.getElementById("txt2").value
b=Math.floor(a);
这样写为什么就不可以了?