怎么賦值不到id哪里去呢
<strong ?style=\"width: 34px; line-height: 48px; font-size: 28px; height: 50px; display: block; color: #fff; text-align: center; margin: 0 auto;-webkit-animation: change 1s infinite;animation: change 1s infinite;-moz-animation: change 1s infinite;\" id=\"syhw\">10<\/strong>
怎么賦值不到id哪里去呢
var?hours?=??(new?Date()).getHours();這個hours已經(jīng)定義了
var syhw1 = document.getElementById("syhw");
if(10>hours>=8){
syhw1.innerHTML="13"
}
else if(12>hours>=10)
{//預約剩余10
syhw1.innerHTML="10"
}
else if(14>hours>=12)
{//預約剩余7
document.write()) syhw1.innerHTML="7"
}
else
{
syhw1.innerHtml="5"
}
請教一下哪里出錯了
2017-02-22
10>hours>=8 ?分開寫(hours<10)&&(hours>=8