IE 调试器告诉我它需要一个 ;在粗体区域,我无法让它高兴。我在这里缺少什么!
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
var dateObject = new Date();
var greeting = "";
var curTime = "";
var minuteValue = dateObject.getMinutes();
var hourValue = dateObject.getHours();
if (minuteValue) "**<**" 10)
minute = "0" + minuteValue;
if (hourValue "<" 12) {
greeting = "Good morning! "
curTime = hourValue + ":" + minuteValue + " AM";
最佳答案
检查这一行if (monthValue) "<"10)
;圆括号是必要的还是错误的?
关于javascript - IE 调试器期望 ";"为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21772328/