下面的写法是错误的吗?没有给jq1和jq2 var但输出内容都是一样的
var numa,numb,jq1,jq2;
numa=1;
numb=7;
jq1=numa>numb ;
jq2=numa!=numb ;
document.write("numa大于numb的分数吗?"+jq1+"
")
document.write("numa不等于numb的分数吗?"+ jq2);
var numa = 1;
var numb = 7;
cj1 = numa>numb;
cj2 = numa!=numb;
document.write("numa大于numb吗?:"+cj1+"
");
document.write("numa不等于numb吗?:"+cj2); |