When I enter the if statement, the browser reports an error
Wang
Wang 2019-05-28 10:31:01
0
1
1527

VM345:1 Uncaught ReferenceError: time is not defined at <anonymous>:1:5

What does this mean, teacher?

Wang
Wang

reply all(1)
你算哪块小饼干

You need to define the time first, the teacher defined it in advance

var a=new Date()

undefined

time=a.getHours()

9

if(time<12)

{

x="Hello";

}

" Hello"

That's it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template