node4

作者: 雨笑_e29c | 来源:发表于2018-12-05 14:02 被阅读0次

const jade=require('jade');

var str=jade.renderFile('./view/3.jade',{pretty:true});

console.log(str);

html

heade

body

ul

li

li

li

html

head

body

a(href='http://www.baidu.com')

input(type='text',name='uname',value='用户名')

input(type='password',name='upwd',value='密码')

input(type='submit',value='提交')

div(style="width:200px;height:100px;background:red")

div(style={width:'200px',height:'100px',background:'red'})

p(class='left active box')

p(class=['left','active','box'])

html

head

body

a(href='http://www.baidu.com') 去百度

div aaa

span bbb

相关文章

网友评论

      本文标题:node4

      本文链接:https://www.haomeiwen.com/subject/cinicqtx.html