Home > Software engineering >  Beginners VBScript
Beginners VBScript

Time:10-04




The function the greeting ()
I=hour (time)
If I & lt; 10 then
Document. Write (" Good morning!" )
The else
Document. Write (" gjzl.dayoo.com!" )
End the if
End the function
</script>






<body>

Document. The write (DateAdd (" d ", 30, the date ()))
</script>


This example USES & lt; b> DateAdd To calculate within 30 days from today's date,




Syntax: DateAdd DateAdd (interval, number and date).






<body>

Fname="Bill"
Document. Write (" Hello "& amp; Trim (fname) & amp; "Gates
Document. Write (" Hello "& amp; The rtrim (fname) & amp; "Gates
Document. Write (" Hello "& amp; The ltrim (fname) & amp; "Gates
</script>



CodePudding user response:

Used to suggest don't use the word web VBS, javascript is choice, use javascript jQuery framework is the best weapon,

CodePudding user response:

What is your problem?

CodePudding user response:

Learning how to learn, support support

CodePudding user response:

Study study, day day up,
  • Related