1. import CSS and JS files 1. csslinkjsscr (linkrel & amp; #39; stylesheet & amp; #39; type & amp; #39; text/css & amp; #39; href & amp; #39 ;__ PUBLIC _/Css/test.css & amp; #3...
1. import CSS and JS files
1. css link
- Js scr
- (Link rel = 'stylesheet 'type = 'text/css 'href =' _ PUBLIC _/Css/test.css '/)
- (Script src = '_ PUBLIC _/Js/test. js') (/script)
2. import
- (Import type = 'js' file = 'JS. test'/) // Import test in the Js directory under the Public folder. js file. the import label can omit the type attribute. the default value is the js
- (Import type = 'css 'file = 'css. test'/) // The default value is the Public folder.
- // You can change the basepath attribute of the default folder.
- (Import type = 'js' file = 'JS. my' basepath = './Other '/)
3. load
// The method can automatically detect the imported file type
(Load href = '_ PUBLIC _/Js/test. js '/)
II. branch structure
1. if
- (If condition = '$ sex eq "male "')
- Men are made of mud.
- (Else /)
- Women are made of water.
- (/If)
-
- (If condition = '$ age lt 18 ')
- Minor
- (Elseif condition = '$ age eq 18 '/)
- Young
- (Else /)
- Adult
- (/If)
- > Gt
- <Ltlt
- = Eq
- <= Elt
- > = Egt
- ! = Neq
- === Heq
- ! = Nheq
-
- (Switch name = 'number') // remove the $ symbol of the variable in the loop.
- (Case value = '1') a monk picks up the water to eat (/case)
- (Case value = '2') two monk stations (/case)
- (Case value = '3') three monks without water (/case)
- (Default/) here is the default value
- (/Switch)